// react import React from "react"; // react-hook-form import { Control, Controller, UseFormWatch } from "react-hook-form"; import { IModule } from "@plane/types"; // ui import { CustomSelect, DoubleCircleIcon } from "@plane/ui"; // types import { MODULE_STATUS } from "@/constants/module"; // 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}
))}
)} />
);