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

21 lines
458 B
TypeScript
Raw Normal View History

2019-09-12 08:11:25 +00:00
import React from "react";
import BaseWidget, { WidgetProps, WidgetState } from "./BaseWidget";
2019-11-25 05:07:27 +00:00
import { WidgetType } from "constants/WidgetConstants";
2019-09-12 08:11:25 +00:00
class SwitchWidget extends BaseWidget<SwitchWidgetProps, WidgetState> {
2019-09-12 08:11:25 +00:00
getPageView() {
return <div />;
2019-09-12 08:11:25 +00:00
}
getWidgetType(): WidgetType {
return "SWITCH_WIDGET";
}
}
export interface SwitchWidgetProps extends WidgetProps {
isOn: boolean;
label: string;
2019-09-12 08:11:25 +00:00
}
export default SwitchWidget;