Schedule - {tournament.name}
Tournament Schedule
No schedule has been generated yet. Click "Generate Schedule" to create round matchups.
import { prisma } from "@/lib/prisma" import Navigation from "@/components/Navigation" import Link from "next/link" import { notFound } from "next/navigation" interface PageProps { params: Promise<{ id: string }> } export const dynamic = "force-dynamic" export default async function TournamentSchedulePage({ params }: PageProps) { const { id } = await params const tournamentId = parseInt(id, 10) if (isNaN(tournamentId)) { notFound() } const tournament = await prisma.event.findUnique({ where: { id: tournamentId }, include: { participants: { include: { player: true, }, }, }, }) if (!tournament) { notFound() } return (
No schedule has been generated yet. Click "Generate Schedule" to create round matchups.