import React, { FunctionComponent } from 'react';
import { Radio as AntdRadio } from 'antd';
import { IReactOptionsComponent } from '@wowpic/xform-types';

const Radio: FunctionComponent<IReactOptionsComponent> = ({
    onChange,
    ...props
}) => (
    <AntdRadio.Group onChange={(e) => onChange(e.target.value)} {...props} />
);

export default Radio;
