'use client'; import { useState } from 'react'; import { Play, Clock, ExternalLink } from 'lucide-react'; import { YoutubeIcon as Youtube } from '@/components/icons/YoutubeIcon'; import { VideoChapter } from '@/lib/data'; interface VideoPlayerProps { youtubeId: string; youtubeUrl: string; title: string; chapters?: VideoChapter[]; } export function VideoPlayer({ youtubeId, youtubeUrl, title, chapters }: VideoPlayerProps) { const [activeSeconds, setActiveSeconds] = useState(0); const embedUrl = `https://www.youtube.com/embed/${youtubeId}?autoplay=0&start=${activeSeconds}`; const handleChapterClick = (seconds: number) => { setActiveSeconds(seconds); }; return (