/** * @module cortex/pages/team/TeamPage * @audience installer * @layer frontend-page * @stability stable * * Cortex team management page. Visible to support_admin and system_admin. * Invites are scoped to the spine-system account with selectable cortex roles. * List is filtered to cortex roles only (support, support_admin). * * Route: /cortex/team * * @seeAlso src/components/shared/InviteManager.tsx */ import React from 'react' import { InviteManager } from '@core/components/shared/InviteManager' import { useAuth } from '@core/contexts/AuthContext' const CORTEX_ROLES = [ { slug: 'support', name: 'Support' }, { slug: 'support_admin', name: 'Support Admin' }, ] const CORTEX_ROLE_SLUGS = CORTEX_ROLES.map(r => r.slug).join(',') export function TeamPage() { const { user } = useAuth() const isAllowed = user?.is_system_admin || user?.roles?.some((r: string) => r === 'support_admin' || r === 'system_admin') if (!isAllowed) { return (

You don't have permission to manage team members.

) } return (

Team

Invite support staff and manage access to Cortex.

) }