import { Building2, Network } from 'lucide-react'; import { cn } from '../_lib/utils'; interface ScopeCardProps { organization?: { name: string } | null; chapter?: { name: string } | null; /** Tailwind text color for the icons, e.g. text-blue-600 */ accent?: string; } /** * Shows the tenancy scope (Organisation → Chapter) the current user * is operating within. Rendered in a portal sidebar below the brand. */ export function ScopeCard({ organization, chapter, accent = 'text-muted-foreground' }: ScopeCardProps) { if (!organization && !chapter) return null; return (
{organization && (

Organisation

{organization.name}

)} {chapter && (

Chapter

{chapter.name}

)}
); }