import { GPTVis } from '@antv/gpt-vis'; import { CheckOutlined, CloseOutlined } from '@mui/icons-material'; import classNames from 'classnames'; import { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { oneDark, oneLight } from 'react-syntax-highlighter/dist/esm/styles/prism'; import remarkGfm from 'remark-gfm'; import { CodePreview } from './code-preview'; import markdownComponents from './config'; interface Props { data: { code: string[]; exit_success: true; language: string; log: string; }; } function VisCode({ data }: Props) { const { t } = useTranslation(); const [show, setShow] = useState(0); return (