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

21 lines
461 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-09-12 08:11:25 +00:00
import { WidgetType } from "../constants/WidgetConstants";
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;