import ReactMarkdown from "react-markdown"; import "katex/dist/katex.min.css"; import RemarkMath from "remark-math"; import RehypeKatex from "rehype-katex"; import RemarkGfm from "remark-gfm"; import RehypePrsim from "rehype-prism-plus"; import { useRef } from "react"; import { copyToClipboard } from "../utils"; export function PreCode(props: { children: any }) { const ref = useRef(null); return (
       {
          if (ref.current) {
            const code = ref.current.innerText;
            copyToClipboard(code);
          }
        }}
      >
      {props.children}
    
); } export function Markdown(props: { content: string }) { return ( {props.content} ); }