PromucFlow_constructor/app/client/src/widgets/BaseComponent.tsx

18 lines
432 B
TypeScript
Raw Normal View History

2019-09-09 09:08:54 +00:00
import { Component } from "react";
import { Color } from "constants/Colors";
2019-09-05 17:47:50 +00:00
/***
* Components are responsible for binding render inputs to corresponding UI SDKs
*/
2019-09-05 17:47:50 +00:00
abstract class BaseComponent<T extends ComponentProps> extends Component<T> {}
2019-09-05 17:47:50 +00:00
export interface ComponentProps {
2019-09-09 09:08:54 +00:00
widgetId: string;
widgetName?: string;
2019-10-31 05:28:11 +00:00
isDisabled?: boolean;
2020-02-11 09:56:21 +00:00
isVisible?: boolean;
backgroundColor?: Color;
}
2019-09-09 09:08:54 +00:00
export default BaseComponent;