import isEqual from "lodash/isEqual";
import { useEffect, useRef, useState } from "react";
import ReactSelect, { createFilter } from "react-select";
import CreatableSelect from "react-select/creatable";
import { compressImage } from "../../../../lib/helpers/compress-image";
import { useToast } from "../../../../lib/providers/toast-provider";
import useDebounce from "./../../../../lib/hooks/useDebounce";
const tailwindConfig = require("./../../../../tailwind.config");
const getTailwindColor = (color): { light: string; DEFAULT: string; dark: string } => {
return tailwindConfig.theme.extend.colors[color];
};
export interface SelectProps extends FormControlProps {
native?: boolean;
options?: Option[];
optionsPromise?: () => Promise