import { useRouter } from "next/router"; import Link from "next/link"; import { NextPage } from "next"; import useSWR from "swr"; // hooks import { useMobxStore } from "lib/mobx/store-provider"; // layouts import { ProjectAuthorizationWrapper } from "layouts/auth-layout-legacy"; // components import { InboxActionsHeader, InboxMainContent, InboxIssuesListSidebar } from "components/inbox"; import { ProjectInboxHeader } from "components/headers"; // helper import { truncateText } from "helpers/string.helper"; // ui import { BreadcrumbItem, Breadcrumbs } from "@plane/ui"; const ProjectInbox: NextPage = () => { const router = useRouter(); const { workspaceSlug, projectId, inboxId } = router.query; const { inboxIssues: inboxIssuesStore, inboxFilters: inboxFiltersStore, project: projectStore } = useMobxStore(); const projectDetails = workspaceSlug && projectId ? projectStore.getProjectById(workspaceSlug.toString(), projectId.toString()) : undefined; useSWR( workspaceSlug && projectId && inboxId ? `REVALIDATE_INBOX_${inboxId.toString()}` : null, workspaceSlug && projectId && inboxId ? async () => { await inboxFiltersStore.fetchInboxFilters(workspaceSlug.toString(), projectId.toString(), inboxId.toString()); await inboxIssuesStore.fetchInboxIssues(workspaceSlug.toString(), projectId.toString(), inboxId.toString()); } : null ); return ( router.back()}>

Projects

} /> } right={} >
); }; export default ProjectInbox;