import React from "react"; // react hook form import { Controller } from "react-hook-form"; // hooks import useUser from "lib/hooks/useUser"; // icons import { PlusIcon } from "@heroicons/react/20/solid"; // ui import { CustomListbox } from "ui"; // types import type { Control } from "react-hook-form"; import type { IIssue } from "types"; import { Squares2X2Icon } from "@heroicons/react/24/outline"; type Props = { control: Control; setIsOpen: React.Dispatch>; }; const SelectState: React.FC = ({ control, setIsOpen }) => { const { states } = useUser(); return ( ( { return { value: state.id, display: state.name }; })} value={value} optionsFontsize="sm" onChange={onChange} icon={} footerOption={ } /> )} /> ); }; export default SelectState;