import { SetStateAction } from "react"; import { observer } from "mobx-react"; import { GripVertical, Pencil } from "lucide-react"; // Plane import { IState } from "@plane/types"; import { StateGroupIcon } from "@plane/ui"; // Plane-web import { StateTransitionCount } from "@/plane-web/components/workflow"; import { IStateWorkFlow } from "@/plane-web/types"; // import { StateDelete, StateMarksAsDefault } from "./options"; export type StateItemTitleProps = { workspaceSlug: string; projectId: string; setUpdateStateModal: (value: SetStateAction) => void; stateCount: number; disabled: boolean; state: IState; currentTransitionMap?: IStateWorkFlow; }; export const StateItemTitle = observer((props: StateItemTitleProps) => { const { workspaceSlug, projectId, stateCount, setUpdateStateModal, disabled, state, currentTransitionMap } = props; return (
{/* draggable indicator */} {!disabled && stateCount != 1 && (
)} {/* state icon */}
{/* state title and description */}
{state.name}

{state.description}

{/* Transition count */}
{!disabled && (
{/* state mark as default option */}
{/* state edit options */}
)}
); });