"use client" import Link from "next/link" interface Player { id: number name: string } interface BracketMatchup { id: number player1P1: Player | null player1P2: Player | null player2P1: Player | null player2P2: Player | null match: { id: number } | null bracketPosition: number | null status: string } interface TournamentRound { id: number roundNumber: number status: string bracketMatchups: BracketMatchup[] } interface ScheduleDisplayProps { rounds: TournamentRound[] tournamentId: number } export function ScheduleDisplay({ rounds, tournamentId }: ScheduleDisplayProps) { return (
Match {matchup.bracketPosition || matchup.id}
{matchup.player1P1?.name || 'TBD'} & {matchup.player1P2?.name || 'TBD'}
vs
{matchup.player2P1?.name || 'TBD'} & {matchup.player2P2?.name || 'TBD'}