import { useTranslation } from 'react-i18next' import BetaNotice from '@/components/BetaNotice' import CodeEditor from '@/components/CodeEditor' import { CDN_CN_URL, CDN_URL } from '@/constants' export default function CdnSetup() { const { i18n } = useTranslation() const isZh = i18n.language === 'zh-CN' return (
{isZh ? '通过 CDN 快速集成 page-agent,无需复杂的构建配置。默认使用演示模型。' : 'Fastest way to integrate page-agent via CDN. No complex build setup needed. Demo model will be used by default.'}
| {isZh ? '位置' : 'Location'} | URL |
|---|---|
| {isZh ? '全球' : 'Global'} | {CDN_URL} |
| {isZh ? '中国镜像' : 'China Mirror'} | {CDN_CN_URL} |