import { Tooltip } from "antd" import { CheckIcon, ClipboardIcon } from "lucide-react" import { FC, memo, useState } from "react" import { useTranslation } from "react-i18next" import { Prism as SyntaxHighlighter } from "react-syntax-highlighter" import { coldarkDark } from "react-syntax-highlighter/dist/cjs/styles/prism" interface Props { language: string value: string } export const CodeBlock: FC = memo(({ language, value }) => { const [isBtnPressed, setIsBtnPressed] = useState(false) const { t } = useTranslation("common") return ( <>
{language}
{value}
) })