'use client'; import React from 'react'; import { Box } from '@/ui/Box'; import { Stack } from '@/ui/Stack'; import { Heading } from '@/ui/Heading'; import { Text } from '@/ui/Text'; import { Button } from '@/ui/Button'; import { Image } from '@/ui/Image'; 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 && ( )} ); }