import React, { FunctionComponent } from 'react';
import { Switch as AntdSwitch } from 'antd';
import { IReactComponent } from '@wowpic/xform-types';

const Switch: FunctionComponent<IReactComponent> = ({
    value,
    ...props
}) => <AntdSwitch checked={value} {...props} />;

export default Switch;
