import { FC, useState } from "react"; import { observer } from "mobx-react"; import { useRouter } from "next/router"; import { Plus, RefreshCcw } from "lucide-react"; // ui import { Breadcrumbs, Button, LayersIcon } from "@plane/ui"; // components import { BreadcrumbLink } from "@/components/common"; import { InboxIssueCreateEditModalRoot } from "@/components/inbox"; import { ProjectLogo } from "@/components/project"; // hooks import { useProject, useProjectInbox } from "@/hooks/store"; export const ProjectInboxHeader: FC = observer(() => { // states const [createIssueModal, setCreateIssueModal] = useState(false); // router const router = useRouter(); const { workspaceSlug, projectId } = router.query; // store hooks const { currentProjectDetails } = useProject(); const { loader } = useProjectInbox(); return (
) } /> } /> } /> } /> {loader === "pagination-loading" && (

Syncing...

)}
{currentProjectDetails?.inbox_view && workspaceSlug && projectId && (
setCreateIssueModal(false)} issue={undefined} />
)}
); });