Stage 2: student lesson viewer, Kinescope player, PDF files, prev/next nav, My Courses dashboard

This commit is contained in:
2026-04-07 12:13:12 +05:00
parent 03e3972388
commit 05dd4d1df2
13 changed files with 657 additions and 40 deletions
+25
View File
@@ -0,0 +1,25 @@
"use client";
import { useEditor, EditorContent } from "@tiptap/react";
import StarterKit from "@tiptap/starter-kit";
import Image from "@tiptap/extension-image";
import Link from "@tiptap/extension-link";
export function LessonContent({ content }: { content: object }) {
const editor = useEditor({
extensions: [
StarterKit,
Image.configure({ inline: false }),
Link.configure({ openOnClick: true }),
],
content,
editable: false,
editorProps: {
attributes: {
class: "prose prose-slate max-w-none focus:outline-none",
},
},
});
return <EditorContent editor={editor} />;
}