// react import React from "react"; // react hook form import { Controller, FieldError, Control } from "react-hook-form"; import { Squares2X2Icon } from "@heroicons/react/24/outline"; // import type { Control } from "react-hook-form"; // ui import type { IModule } from "types"; import { CustomListbox } from "components/ui"; // icons // types import { MODULE_STATUS } from "constants/"; type Props = { control: Control; error?: FieldError; }; const SelectStatus: React.FC = (props) => { const { control, error } = props; return ( (
({ value: status.value, display: status.label, color: status.color, }))} value={value} optionsFontsize="sm" onChange={onChange} icon={} /> {error &&

{error.message}

}
)} /> ); }; export default SelectStatus;