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

{error.message}

}
)} /> );