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

{error.message}

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