import { ReactElement } 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 GlobalViewIssuesPage: NextPageWithLayout = () => { const router = useRouter(); const { workspaceSlug, viewId } = router.query; if (!workspaceSlug || !viewId) return <>>; return (