2019-09-09 09:08:54 +00:00
|
|
|
import { Component } from "react";
|
2019-11-13 07:00:25 +00:00
|
|
|
import { Color } from "constants/Colors";
|
2019-09-05 17:47:50 +00:00
|
|
|
|
2019-02-10 13:06:05 +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-02-10 13:06:05 +00:00
|
|
|
|
2019-09-05 17:47:50 +00:00
|
|
|
export interface ComponentProps {
|
2019-09-09 09:08:54 +00:00
|
|
|
widgetId: string;
|
2019-10-02 18:13:04 +00:00
|
|
|
widgetName?: string;
|
2019-10-31 05:28:11 +00:00
|
|
|
isDisabled?: boolean;
|
2020-02-11 09:56:21 +00:00
|
|
|
isVisible?: boolean;
|
2019-11-13 07:00:25 +00:00
|
|
|
backgroundColor?: Color;
|
2019-02-10 13:06:05 +00:00
|
|
|
}
|
|
|
|
|
|
2019-09-09 09:08:54 +00:00
|
|
|
export default BaseComponent;
|