mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
- Unify video page components into single VideoPageContent component
- Reduces ~2300 lines of duplicated code between dashboard and watch pages
- Uses mode prop ('dashboard' | 'watch') to handle differences
- Move shadcn to devDependencies (CLI tool, not needed at runtime)
- Remove radix-ui meta-package (components already imported individually)
- Replace <img> tags with next/image for automatic optimization
- Add remotePatterns config for YouTube, Vimeo, Unsplash domains
- Update video-card.tsx, videos/new/page.tsx, component-example.tsx
- Add next/dynamic for KeyboardShortcutsModal (lazy load on demand)
17 lines
332 B
TypeScript
17 lines
332 B
TypeScript
'use client';
|
|
|
|
import { useParams } from 'next/navigation';
|
|
import { VideoPageContent } from '@/components/video-page-content';
|
|
|
|
export default function WatchPage() {
|
|
const params = useParams();
|
|
const videoId = params.videoId as string;
|
|
|
|
return (
|
|
<VideoPageContent
|
|
mode="watch"
|
|
videoId={videoId}
|
|
/>
|
|
);
|
|
}
|