import { Prism as SyntaxHighlighter } from "react-syntax-highlighter" import remarkGfm from "remark-gfm" import { nightOwl } from "react-syntax-highlighter/dist/cjs/styles/prism" 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" import { useTranslation } from "react-i18next" export default function Markdown({ message }: { message: string }) { const [isBtnPressed, setIsBtnPressed] = React.useState(false) const { t } = useTranslation("common") return (
{className && className.replace("language-", "")}
) : ( {children} ) }, a({ node, ...props }) { return ( {props.children} ) }, p({ children }) { return

{children}

} }}> {message}
) }