import React from "react"; // react hook form import { Controller, FieldError, Control } from "react-hook-form"; // ui import { CustomSelect, DoubleCircleIcon, ModuleStatusIcon } from "@plane/ui"; // types import { MODULE_STATUS } from "constants/module"; import type { IModule } from "@plane/types"; // constants type Props = { control: Control; error?: FieldError; tabIndex?: number; }; export const ModuleStatusSelect: React.FC = ({ control, error, tabIndex }) => ( ( {value ? ( ) : ( )} {MODULE_STATUS.find((s) => s.value === value)?.label ?? ( Status )} } onChange={onChange} tabIndex={tabIndex} noChevron > {MODULE_STATUS.map((status) => (
{status.label}
))}
)} /> );