import { JoinTeamButton } from '@/components/teams/JoinTeamButton'; import { Box } from '@/ui/Box'; import { Card } from '@/ui/Card'; import { Heading } from '@/ui/Heading'; import { Stack } from '@/ui/Stack'; import { TeamLogo } from '@/ui/TeamLogo'; import { TeamTag } from '@/ui/TeamTag'; import { Text } from '@/ui/Text'; interface TeamHeroProps { team: { id: string; name: string; tag: string | null; description?: string; category?: string | null; createdAt?: string; leagues: { id: string }[]; }; memberCount: number; onUpdate: () => void; } export function TeamHero({ team, memberCount, onUpdate }: TeamHeroProps) { return ( {team.name} {team.tag && } {team.description} {memberCount} {memberCount === 1 ? 'member' : 'members'} {team.category && ( {team.category} )} {team.createdAt && ( Founded {new Date(team.createdAt).toLocaleDateString('en-US', { month: 'short', year: 'numeric' })} )} {team.leagues && team.leagues.length > 0 && ( Active in {team.leagues.length} {team.leagues.length === 1 ? 'league' : 'leagues'} )} ); }