import CopyToClipboard from '@/components/copy-to-clipboard'; import HightLightMarkdown from '@/components/highlight-markdown'; import { SharedFrom } from '@/constants/chat'; import { useTranslate } from '@/hooks/common-hooks'; import { IModalProps } from '@/interfaces/common'; import { Card, Modal, Tabs, TabsProps, Typography } from 'antd'; import { useIsDarkTheme } from '@/components/theme-provider'; import { cn } from '@/lib/utils'; import styles from './index.less'; const { Paragraph, Link } = Typography; const EmbedModal = ({ visible, hideModal, token = '', form, beta = '', isAgent, }: IModalProps & { token: string; form: SharedFrom; beta: string; isAgent: boolean; }) => { const { t } = useTranslate('chat'); const isDarkTheme = useIsDarkTheme(); const text = ` ~~~ html ~~~ `; const items: TabsProps['items'] = [ { key: '1', label: t('fullScreenTitle'), children: ( } className={styles.codeCard} > {text} ), }, { key: '2', label: t('partialTitle'), children: t('comingSoon'), }, { key: '3', label: t('extensionTitle'), children: t('comingSoon'), }, ]; const onChange = (key: string) => { console.log(key); }; return (
{t(isAgent ? 'flow' : 'chat', { keyPrefix: 'header' })} ID
{token} {t('howUseId', { keyPrefix: isAgent ? 'flow' : 'chat' })}
); }; export default EmbedModal;