import { PrintStartlist } from "@/components/print-startlist" export default async function PrintStartlistPage({ params, searchParams, }: { params: Promise<{ id: string }> searchParams: Promise<{ org?: string; roundId?: string; sessionId?: string; paper?: string; orientation?: string }> }) { const { id } = await params const { org, roundId, sessionId, paper, orientation } = await searchParams if (!org) { return (

Mangler organisasjon i lenken. Gå tilbake til dashbordet og prøv igjen.

) } const validSizes = ["A4", "Letter", "A3", "A2"] as const const initialSize = (validSizes as readonly string[]).includes(paper ?? "") ? (paper as (typeof validSizes)[number]) : "A4" return ( ) }