import { classNames } from '@/utils'; import { CreatableAdditionalProps } from 'node_modules/react-select/dist/declarations/src/useCreatable'; import { StateManagerProps } from 'node_modules/react-select/dist/declarations/src/useStateManager'; import { HiChevronDown } from 'react-icons/hi'; import { components, GroupBase, MultiValueRemoveProps } from 'react-select'; import CreatableSelect from 'react-select/creatable'; import { twMerge } from 'tailwind-merge'; import ErrorMessage from './ErrorMessage'; type CreatableProps> = StateManagerProps< Option, IsMulti, Group > & CreatableAdditionalProps & { label?: string; id?: string; className?: string; errors?: string[]; helpText?: string; required?: boolean; disabled?: boolean; placeholder?: string; }; const TaggableSelect = = GroupBase