import React from 'react';
import { CgSpinner } from 'react-icons/cg';
import { FiChevronDown } from 'react-icons/fi';
import { GroupBase, MenuPosition } from 'react-select';
import AsyncSelect, { AsyncProps } from 'react-select/async';
import { twMerge } from 'tailwind-merge';
import ErrorMessage from './ErrorMessage';
import { classNames } from '@/utils';
export type AsyncSearchableSelectProps<
Option,
IsMulti extends boolean = false,
Group extends GroupBase