import { observer } from "mobx-react-lite"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // layout import { AppLayout } from "layouts/app-layout"; import { WorkspaceSettingLayout } from "layouts/settings-layout"; // components import { WorkspaceSettingHeader } from "components/headers"; import ExportGuide from "components/exporter/guide"; // types import { NextPageWithLayout } from "types/app"; // constants import { EUserWorkspaceRoles } from "constants/workspace"; const ExportsPage: NextPageWithLayout = observer(() => { const { user: { currentWorkspaceRole }, } = useMobxStore(); const hasPageAccess = currentWorkspaceRole && [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER].includes(currentWorkspaceRole); if (!hasPageAccess) return (

You are not authorized to access this page.

); return (

Exports

); }); ExportsPage.getLayout = function getLayout(page: React.ReactElement) { return ( }> {page} ); }; export default ExportsPage;