"use client"; import { FC, useState } from "react"; import { observer } from "mobx-react"; import { Plus } from "lucide-react"; import { IState, TStateGroups } from "@plane/types"; // components import { StateList, StateCreate } from "@/components/project-states"; type TGroupItem = { workspaceSlug: string; projectId: string; groupKey: TStateGroups; groupedStates: Record; states: IState[]; }; export const GroupItem: FC = observer((props) => { const { workspaceSlug, projectId, groupKey, groupedStates, states } = props; // state const [createState, setCreateState] = useState(false); return (
{groupKey}
!createState && setCreateState(true)} >
{createState && ( setCreateState(false)} /> )}
); });