import { useRouter } from "next/router"; import useSWR from "swr"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // components import { GlobalViewsHeader } from "components/workspace"; import { GlobalIssuesHeader } from "components/headers"; import { GlobalViewsAllLayouts } from "components/issues"; // layouts import { WorkspaceAuthorizationLayout } from "layouts/auth-layout-legacy"; // icons import { CheckCircle } from "lucide-react"; // types import { NextPage } from "next"; // fetch-keys import { GLOBAL_VIEWS_LIST } from "constants/fetch-keys"; const GlobalViewCreatedIssues: NextPage = () => { const router = useRouter(); const { workspaceSlug } = router.query; const { globalViews: globalViewsStore } = useMobxStore(); useSWR( workspaceSlug ? GLOBAL_VIEWS_LIST(workspaceSlug.toString()) : null, workspaceSlug ? () => globalViewsStore.fetchAllGlobalViews(workspaceSlug.toString()) : null ); return ( Workspace issues } right={} >
); }; export default GlobalViewCreatedIssues;