import ReactMarkdown from "react-markdown"; import remarkGfm from "remark-gfm"; import rehypeRaw from "rehype-raw"; import { Prism as SyntaxHighlighter } from "react-syntax-highlighter"; import { vscDarkPlus } from "react-syntax-highlighter/dist/esm/styles/prism"; import { useState } from "react"; interface MarkdownViewerProps { content: string; } const CodeHeader: React.FC<{ language: string; onCopy: () => void; copied: boolean; }> = ({ language, onCopy, copied }) => (
{children}
);
},
}}
>
{content}