import { FC, Fragment } from "react"; import { observer } from "mobx-react"; import { Transition, Dialog } from "@headlessui/react"; import { TIssue } from "@plane/types"; // components import { InboxIssueCreateRoot, InboxIssueEditRoot } from "@/components/inbox/modals/create-edit-modal"; // hooks import { useProject } from "@/hooks/store"; type TInboxIssueCreateEditModalRoot = { workspaceSlug: string; projectId: string; modalState: boolean; handleModalClose: () => void; issue: Partial | undefined; onSubmit?: () => void; }; export const InboxIssueCreateEditModalRoot: FC = observer((props) => { const { workspaceSlug, projectId, modalState, handleModalClose, issue, onSubmit } = props; // hooks const { currentProjectDetails } = useProject(); return (
{issue && issue?.id ? (

Move {currentProjectDetails?.identifier}-{issue?.sequence_id} to project issues

) : (

Create Inbox Issue

)}
); });