'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; leagues: { id: string }[]; }; memberCount: number; onUpdate: () => void; } export function TeamHero({ team, memberCount, onUpdate }: TeamHeroProps) { return ( {team.name} {team.tag && } {team.description} 0 ? [{ label: 'Activity', value: `${team.leagues.length} ${team.leagues.length === 1 ? 'league' : 'leagues'}`, }] : []), ]} /> ); }