import { Form, Select as AntSelect } from 'antd'; import { useMemo } from 'react'; import type { BaseElementProps, BaseOption } from './types'; const { Item: FormItem } = Form; type ElementProps = { options: BaseOption[]; }; export default function Select({ value = null, setValue, options = [], status, isValid, help, ...props }: BaseElementProps & ElementProps) { const optionsWithNull = useMemo( () => [ { label: 'Не выбрано', value: null, }, ...options, ], [options] ); return ( ); } export { type SelectProps } from 'antd';