import { Prism as SyntaxHighlighter } from "react-syntax-highlighter" import remarkGfm from "remark-gfm" import { nightOwl } from "react-syntax-highlighter/dist/cjs/styles/prism" import rehypeMathjax from "rehype-mathjax" import remarkMath from "remark-math" import ReactMarkdown from "react-markdown" import "property-information" import React from "react" import { Tooltip } from "antd" import { CheckIcon, ClipboardIcon } from "lucide-react" export default function Markdown({ message }: { message: string }) { const [isBtnPressed, setIsBtnPressed] = React.useState(false) React.useEffect(() => { if (isBtnPressed) { setTimeout(() => { setIsBtnPressed(false) }, 4000) } }, [isBtnPressed]) return (
{className && className.replace("language-", "")}
) : ( {children} ) }, a({ node, ...props }) { return ( {props.children} ) }, p({ children }) { return

{children}

} }}> {message}
) }