mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
23 lines
666 B
TypeScript
23 lines
666 B
TypeScript
import { VideoPageContent } from '@/components/video-page-content';
|
|
import { auth } from '@/lib/auth';
|
|
import { requireVideoProjectAccessOrRedirect } from '@/lib/route-access';
|
|
|
|
interface VideoPageProps {
|
|
params: Promise<{ projectId: string; videoId: string }>;
|
|
}
|
|
|
|
export default async function VideoPage({ params }: VideoPageProps) {
|
|
const { projectId, videoId } = await params;
|
|
const session = await auth();
|
|
|
|
await requireVideoProjectAccessOrRedirect({
|
|
projectId,
|
|
videoId,
|
|
userId: session?.user?.id,
|
|
intent: 'view',
|
|
allowPublicView: true,
|
|
});
|
|
|
|
return <VideoPageContent mode="dashboard" videoId={videoId} projectId={projectId} />;
|
|
}
|