Skip to main content
Glama

mcp-google-sheets

platform-layout.tsx1.21 kB
import React from 'react'; import { Navigate } from 'react-router-dom'; import { SidebarInset, SidebarProvider } from '@/components/ui/sidebar-shadcn'; import { UpgradeDialog } from '@/features/billing/components/upgrade-dialog'; import { useShowPlatformAdminDashboard } from '@/hooks/authorization-hooks'; import { flagsHooks } from '@/hooks/flags-hooks'; import { ApEdition, ApFlagId } from '@activepieces/shared'; import { AllowOnlyLoggedInUserOnlyGuard } from './allow-logged-in-user-only-guard'; import { PlatformSidebar } from './sidebar/platform'; export function PlatformLayout({ children }: { children: React.ReactNode }) { const { data: edition } = flagsHooks.useFlag<ApEdition>(ApFlagId.EDITION); const showPlatformAdminDashboard = useShowPlatformAdminDashboard(); return ( <AllowOnlyLoggedInUserOnlyGuard> {showPlatformAdminDashboard ? ( <SidebarProvider> <PlatformSidebar /> <SidebarInset className="px-4 overflow-auto pb-4"> {children} </SidebarInset> </SidebarProvider> ) : ( <Navigate to="/" /> )} {edition === ApEdition.CLOUD && <UpgradeDialog />} </AllowOnlyLoggedInUserOnlyGuard> ); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server