import React from 'react'; import { Radio } from 'antd'; import { FormItemHeight } from '../constants'; interface IProps { label?: string; value?: string | number; options?: { label: string | number; value: string | number; }[]; width?: number | string; onChange?: (value: string | number) => void; } const SelectField: React.FC = props => { const { label = '', value, onChange, options = [], width } = props; return (
{ onChange?.(e.target.value); }} > {options.map(item => ( {item.label} ))}
); }; export default SelectField;