
import VodPage2 from '@/app/components/vod-page-2'
import { IVodPageProps, getVodFromSafeDateOrUUID } from '@/app/lib/vods'
import { notFound } from 'next/navigation';


export default async function Page({ params: { safeDateOrUUID } }: IVodPageProps) {
    const vod = await getVodFromSafeDateOrUUID(safeDateOrUUID);
    if (!vod) return notFound();
    // return (
    //     <pre>
    //         <code>
    //             {JSON.stringify(vod, null, 2)}
    //         </code>
    //     </pre>
    // )
    return <VodPage2 vod={vod} />
}

