import { FC, useState } from "react"; import { observer } from "mobx-react-lite"; 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 { CreateInboxIssueModal } 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 } = router.query; // store hooks const { currentProjectDetails } = useProject(); const { isLoading } = useProjectInbox(); return (
) } /> } /> } /> } /> {isLoading === "pagination-loading" && (

Syncing...

)}
{currentProjectDetails?.inbox_view && (
setCreateIssueModal(false)} />
)}
); });