import css from './index.module.css'; import {Select, Space} from 'antd'; import classNames from 'classnames'; import {FC} from 'react'; import {Controller, UseControllerProps} from 'react-hook-form'; import {useSelectFilterOptions} from '@hooks'; type Props = { label: string; placeholder?: string; options: {value: string; label: string}[]; /** @deprecated */ showSearch?: boolean; onSearch?: (value: string) => void; loading?: boolean; } & UseControllerProps; const ModalSelect: FC = function ({ control, name, label, placeholder, options, onSearch, loading, }) { const [filterOptions, {onSelectSearch}] = useSelectFilterOptions(options); return (