fp/packages/next/app/vt/[slug]/vod/[safeDateOrCuid]/page.tsx

13 lines
385 B
TypeScript
Raw Normal View History

2024-01-20 16:16:14 +00:00
2024-07-10 22:11:18 +00:00
import VodPage from '@/app/components/vod-page'
import { IVodPageProps, getVodFromSafeDateOrCuid } from '@/app/lib/vods'
2024-01-20 16:16:14 +00:00
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} />
}