import { observer } from "mobx-react-lite"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // layouts import { AppLayout } from "layouts/app-layout"; import { WorkspaceSettingLayout } from "layouts/settings-layout"; // component import { WorkspaceSettingHeader } from "components/headers"; // ui import { Button } from "@plane/ui"; // types import { NextPageWithLayout } from "types/app"; // constants import { EUserWorkspaceRoles } from "constants/workspace"; const BillingSettingsPage: NextPageWithLayout = observer(() => { const { user: { currentWorkspaceRole }, } = useMobxStore(); const isAdmin = currentWorkspaceRole === EUserWorkspaceRoles.ADMIN; if (!isAdmin) return (
You are not authorized to access this page.