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

27 lines
483 B
TypeScript
Raw Normal View History

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