import{notFound}from"next/navigation";import{CheckoutClient}from"../../../components/checkout-client";import{SiteHeader}from"../../../components/site-shell";import{events}from"../../../lib/data";
export function generateStaticParams(){return events.map(e=>({slug:e.slug}))}export default async function Checkout({params}:{params:Promise<{slug:string}>}){const{slug}=await params;const event=events.find(e=>e.slug===slug);if(!event)notFound();return <div className="checkout-page"><SiteHeader compact/><main className="checkout-wrap"><CheckoutClient event={event}/></main></div>}
