13 lines
385 B
TypeScript
13 lines
385 B
TypeScript
|
|
||
|
import VodPage from '@/app/components/vod-page'
|
||
|
import { IVodPageProps, getVodFromSafeDateOrCuid } from '@/app/lib/vods'
|
||
|
import { notFound } from 'next/navigation';
|
||
|
|
||
|
|
||
|
export default async function Page({ params: { safeDateOrCuid } }: IVodPageProps) {
|
||
|
const vod = await getVodFromSafeDateOrCuid(safeDateOrCuid);
|
||
|
if (!vod) return notFound();
|
||
|
return <VodPage vod={vod} />
|
||
|
}
|
||
|
|