import { PublicLive } from "@/components/public-live"

export default async function PublicLivePage({
  params,
  searchParams,
}: {
  params: Promise<{ id: string }>
  searchParams: Promise<{ code?: string }>
}) {
  const { id } = await params
  const { code } = await searchParams
  return <PublicLive tournamentId={id} code={code} />
}
