import { ReactElement, useMemo } from "react"; import { useRouter } from "next/router"; // layouts import { AppLayout } from "layouts/app-layout"; // components import { AllIssuesViewRoot } from "components/view"; // types import { NextPageWithLayout } from "lib/types"; // constants import { VIEW_TYPES } from "constants/view"; const ProjectPrivateViewPage: NextPageWithLayout = () => { const router = useRouter(); const { workspaceSlug, projectId, viewId } = router.query; const workspaceViewTabOptions = useMemo( () => [ { key: VIEW_TYPES.PROJECT_PRIVATE_VIEWS, title: "Private", href: `/${workspaceSlug}/projects/${projectId}/views/private`, }, { key: VIEW_TYPES.PROJECT_PUBLIC_VIEWS, title: "Public", href: `/${workspaceSlug}/projects/${projectId}/views/public`, }, ], [workspaceSlug, projectId] ); if (!workspaceSlug || !projectId || !viewId) return <>>; return (