import React, { FunctionComponent } from 'react'; import { Radio as AntdRadio } from 'antd'; import { IReactOption, IReactOptionsComponent } from '@wowpic/xform-types'; const RadioButton: FunctionComponent = ({ options, onChange, ...props }) => ( onChange(e.target.value)} {...props}> {options.map(({ label, value, disabled }: IReactOption, index) => ( {label} ))} ); export default RadioButton;