"use client"; import { observer } from "mobx-react"; // components import { useParams, useSearchParams } from "next/navigation"; import { PageHead } from "@/components/core"; import { EmptyState } from "@/components/empty-state"; import { InboxIssueRoot } from "@/components/inbox"; // constants import { EmptyStateType } from "@/constants/empty-state"; // helpers import { EInboxIssueCurrentTab } from "@/helpers/inbox.helper"; // hooks import { useProject } from "@/hooks/store"; const ProjectInboxPage = observer(() => { /// router const { workspaceSlug, projectId } = useParams(); const searchParams = useSearchParams(); const navigationTab = searchParams.get("currentTab"); const inboxIssueId = searchParams.get("inboxIssueId"); // hooks const { currentProjectDetails } = useProject(); // No access to inbox if (currentProjectDetails?.inbox_view === false) return (