import { Switch } from 'antd'; import { useField } from 'react-final-form'; import { LocalizedInput } from '../..'; import FieldContainer from './FieldContainer'; import InfoBubble from './InfoBubble'; import Label from './Label'; import { FieldProps } from './types'; const LocalizedSwitch = ({ value, onChange, id, }: { value: boolean; onChange: any; id: string; }) => { return ( onChange({ target: { value: checked } })} id={id} /> ); }; export const FieldLocalizedBoolean = (props: FieldProps) => { const field = useField(props.name); return ( ); }; export default FieldLocalizedBoolean;