"use client"; import { Clapperboard, Code2, ExternalLink, Timer } from "lucide-react"; import { useTranslation } from "react-i18next"; import { ChatFileLink } from "@/components/common/ChatFileLink"; import { useInlineFileCardContext } from "@/components/common/InlineFileCard"; import { apiUrl } from "@/lib/api"; import { isChatVideoLessonLink } from "@/lib/chat-file-link"; import type { VideoLessonResult } from "@/lib/video-lesson-types"; export function VideoLessonFrame({ src, title, className, }: { src: string; title: string; className: string; }) { return ( // Scripts are required for the lesson player. The sandbox isolates its origin.