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 (