import React from "react"; 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"; // components import { WorkspaceSettingHeader } from "components/headers"; import { WebhookForm } from "components/web-hooks"; // types import { NextPageWithLayout } from "types/app"; const CreateWebhookPage: NextPageWithLayout = observer(() => { const { user: { currentWorkspaceRole }, } = useMobxStore(); const isAdmin = currentWorkspaceRole === 20; if (!isAdmin) return (
You are not authorized to access this page.