import {filterOptions} from '@utils'; import css from './index.module.css'; import {Row, Col, Select} from 'antd'; import classNames from 'classnames'; import {FC} from 'react'; import {Controller, UseControllerProps} from 'react-hook-form'; type Props = { label: string; placeholder?: string; width?: string; data: {value: string, label: string}[]; required?: boolean; showSearch?: boolean; } & UseControllerProps; const ModalSelect: FC = function({ control, name, label, placeholder, data, required, showSearch, }) { return (