Files
MineGeo/app/tournaments/[id]/page.tsx
pavel444-byte 927923dc95
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 11m31s
Improve accessibility and polish page styling
2026-10-24 14:11:17 +05:00

25 lines
634 B
TypeScript

import { Header, Footer } from "@/components/Shell";
import { TournamentLobby } from "@/components/TournamentLobby";
import { user } from "@/lib/supabase";
import { notFound } from "next/navigation";
import { z } from "zod";
export default async function TournamentPage({
params,
}: {
params: Promise<{ id: string }>;
}) {
const { id } = await params;
if (!z.string().uuid().safeParse(id).success) notFound();
const account = await user();
return (
<>
<Header />
<main id="main-content" tabIndex={-1}>
<TournamentLobby id={id} signedIn={!!account} />
</main>
<Footer />
</>
);
}