import React from "react"; import BaseControl, { ControlProps } from "./BaseControl"; import { StyledSwitch } from "./StyledControls"; import { ControlType } from "constants/PropertyControlConstants"; import FormLabel from "components/editorComponents/FormLabel"; import { Field, WrappedFieldProps } from "redux-form"; type Props = WrappedFieldProps & SwitchControlProps; class SwitchField extends React.Component { render() { const { label, isRequired, input } = this.props; return (
{label} {isRequired && "*"} input.onChange(value)} large />
); } } class SwitchControl extends BaseControl { render() { const { configProperty } = this.props; return ( ); } getControlType(): ControlType { return "FILE_PICKER"; } } export type SwitchControlProps = ControlProps; export default SwitchControl;