// react import React from "react"; // react-hook-form import { Control, Controller, UseFormWatch } from "react-hook-form"; // ui import { CustomSelect, DoubleCircleIcon } from "@plane/ui"; // types import { MODULE_STATUS } from "constants/module"; import { IModule } from "@plane/types"; // common // constants type Props = { control: Control, any>; submitChanges: (formData: Partial) => void; watch: UseFormWatch>; }; export const SidebarStatusSelect: React.FC = ({ control, submitChanges, watch }) => (

Status

( option.value === value)?.color, }} /> {watch("status")} } value={value} onChange={(value: any) => { submitChanges({ status: value }); }} > {MODULE_STATUS.map((option) => (
{option.label}
))}
)} />
);