import type { MutableRefObject, ReactElement, RefAttributes } from "react" import { forwardRef } from "react" import type { GroupBase, SelectInstance } from "react-select" import type { CreatableProps } from "react-select/creatable" import CreatableReactSelect from "react-select/creatable" import { AdjacentContainer } from "../components" import { useSelectProps } from "../use-select-props" export type CreatableSelectComponent = < Option = unknown, IsMulti extends boolean = false, Group extends GroupBase