/** * CourseLearningView — player stage (video / quiz / article). */ import { Button } from '@/components/ui/button'; import { PlayCircle, HelpCircle } from 'lucide-react'; interface Lesson { id: string; title: string; duration: string; type: 'video' | 'article' | 'quiz'; content?: string; quizId?: string; } interface CourseLearningViewPlayerProps { lesson: Lesson | null; onStartQuiz: (quizId: string) => void; } export function CourseLearningViewPlayer({ lesson, onStartQuiz, }: CourseLearningViewPlayerProps) { if (!lesson) { return (

Select a lesson

); } if (lesson.type === 'video') { return (

Video Player Placeholder

{lesson.title}

); } if (lesson.type === 'quiz') { return (

Quiz: {lesson.title}

); } return (

{lesson.title}

{lesson.content ?? 'This is a text-based lesson. Content would be rendered here in Markdown.'}

); }