import { Link } from '@tanstack/react-router'; import { Users } from 'lucide-react'; import { PageHeader } from '@/components/ui/PageHeader'; import { GroupTable } from '@/components/GroupTable'; import { useTournamentStore } from '@/stores/tournamentStore'; export function GroupsPage() { const snapshot = useTournamentStore((s) => s.snapshot); const tables = snapshot?.tables ?? {}; const groups = Object.keys(tables).sort(); return (
All 48 teams } /> {groups.length ? (
{groups.map((g) => ( ))}
) : (
{Array.from({ length: 6 }).map((_, i) => (
))}
)}
Top 2 — advance 3rd — best-third race
); }