import React from "react"; import { observer } from "mobx-react-lite"; // hooks import { useUser } from "hooks/store"; // 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 { membership: { currentWorkspaceRole }, } = useUser(); const isAdmin = currentWorkspaceRole === 20; if (!isAdmin) return (
You are not authorized to access this page.