Files
MineGeo/app/tournaments/[id]/page.tsx
pavel444-byte a7085e4e80
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 2m37s
Improve MineGeo UI and application flows
2026-10-18 11:44:04 +05:00

25 lines
620 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">
<TournamentLobby id={id} signedIn={!!account} />
</main>
<Footer />
</>
);
}