'use client'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; import { vscDarkPlus } from 'react-syntax-highlighter/dist/esm/styles/prism'; import type { Topic } from '@/types'; interface Props { topic: Topic; lessonContent: string | null; isGenerating: boolean; streamingContent: string; } export default function LessonPane({ topic, lessonContent, isGenerating, streamingContent }: Props) { const content = lessonContent ?? (isGenerating ? streamingContent : null); return (
{children}
);
},
h1: ({ children }) => {children}
, ul: ({ children }) =>{children}), hr: () =>