import type { RadioChangeEvent, RadioGroupProps } from 'antd'; import { Form, Radio as AntRadio } from 'antd'; import type { BaseElementProps, BaseOption } from './types'; const { Item: FormItem } = Form; type ElementProps = BaseElementProps & { options: BaseOption[]; }; export default function Radio({ value = null, setValue, options, status, isValid, help, ...props }: ElementProps) { function handleChange(e: RadioChangeEvent) { setValue(e.target.value); } return ( ); } export type { RadioGroupProps as RadioProps };