'use client'; import { Button } from '@/ui/Button'; import { Heading } from '@/ui/Heading'; import { Image } from '@/ui/Image'; import { Stack } from '@/ui/primitives/Stack'; import { Text } from '@/ui/Text'; interface TeamDetailsHeaderProps { teamId: string; name: string; tag?: string; description?: string; logoUrl?: string; memberCount: number; foundedDate?: string; isAdmin?: boolean; onAdminClick?: () => void; } export function TeamDetailsHeader({ name, tag, description, logoUrl, memberCount, foundedDate, isAdmin, onAdminClick, }: TeamDetailsHeaderProps) { return ( {/* Background accent */} {logoUrl ? ( {name} ) : ( {name.substring(0, 2).toUpperCase()} )} {name} {tag && ( [{tag}] )} {description || 'No mission statement provided.'} Personnel {memberCount} Units Established {foundedDate ? new Date(foundedDate).toLocaleDateString() : 'Unknown'} {isAdmin && ( )} ); }