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 type { IModule } from "@plane/types"; // constants import { MODULE_STATUS } from "constants/module"; 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}
))}
)} /> );