'use client'; import { JoinTeamButton } from '@/components/teams/JoinTeamButton'; import { TeamLogo } from '@/components/teams/TeamLogo'; import { TeamTag } from '@/components/teams/TeamTag'; import { Card } from '@/ui/Card'; import { Group } from '@/ui/Group'; import { Heading } from '@/ui/Heading'; import { StatGrid } from '@/ui/StatGrid'; import { Text } from '@/ui/Text'; interface TeamHeroProps { team: { id: string; name: string; tag: string | null; description?: string; category?: string | null; createdAt?: string; foundedDateLabel?: string; leagues: { id: string }[]; }; memberCount: number; memberCountLabel?: string; leagueCountLabel?: string; onUpdate: () => void; } export function TeamHero({ team, memberCount, memberCountLabel, leagueCountLabel, onUpdate }: TeamHeroProps) { return ( {team.name} {team.tag && } {team.description} 0 ? [{ label: 'Activity', value: leagueCountLabel || 'Unknown', }] : []), ]} /> ); }