import { ReactElement } from "react"; import { useRouter } from "next/router"; // layouts import { AppLayout } from "layouts/app-layout"; // components import { GlobalViewsHeader } from "components/workspace"; import { AllIssueLayoutRoot } from "components/issues"; import { GlobalIssuesHeader } from "components/headers"; // types import { NextPageWithLayout } from "lib/types"; const GlobalViewIssuesPage: NextPageWithLayout = () => { const router = useRouter(); const { workspaceSlug, globalViewId: viewId } = router.query; if (!workspaceSlug || !viewId) return <>>; return (