"use client"; import { observer } from "mobx-react"; // ui import { Button } from "@plane/ui"; // component import { PageHead } from "@/components/core"; // constants import { MARKETING_PRICING_PAGE_LINK } from "@/constants/common"; import { EUserWorkspaceRoles } from "@/constants/workspace"; // hooks import { useUser, useWorkspace } from "@/hooks/store"; const BillingSettingsPage = observer(() => { // store hooks const { membership: { currentWorkspaceRole }, } = useUser(); const { currentWorkspace } = useWorkspace(); // derived values const isAdmin = currentWorkspaceRole === EUserWorkspaceRoles.ADMIN; const pageTitle = currentWorkspace?.name ? `${currentWorkspace.name} - Billing & Plans` : undefined; if (!isAdmin) return ( <>

You are not authorized to access this page.

); return ( <>

Billing & Plans

Current plan

You are currently using the free plan

); }); export default BillingSettingsPage;