feat: some changes and admin

This commit is contained in:
2026-03-31 16:09:03 +09:00
parent b5a1c08024
commit fd0f451e7c
54 changed files with 2156 additions and 8 deletions

View File

@@ -0,0 +1,19 @@
import { notFound } from 'next/navigation';
import { PlayersList } from '@/components/PlayersList';
import { getPlayersForTournament } from '@/lib/data';
export const dynamic = 'force-dynamic';
type PageProps = {
params: Promise<{ tournament_key: string }>;
};
export default async function TournamentPlayersPage({ params }: PageProps) {
const { tournament_key } = await params;
const players = await getPlayersForTournament(tournament_key);
if (players === null) {
notFound();
}
return <PlayersList players={players} />;
}