import CodeEditor from '@/components/CodeEditor' import { Heading } from '@/components/Heading' import { CDN_DEMO_CN_URL, CDN_DEMO_URL } from '@/constants' import { useLanguage } from '@/i18n/context' export default function QuickStart() { const { isZh } = useLanguage() return (
{isZh ? '几分钟内完成 page-agent 的集成。' : 'Integrate page-agent in minutes.'}
{isZh ? '在 URL 后添加 ?autoInit=false 可只加载脚本,不自动创建 Demo Agent;之后可通过 new window.PageAgent(...) 手动初始化。' : 'Add ?autoInit=false to load the script without creating the demo agent automatically. You can then instantiate it with new window.PageAgent(...).'}
| {isZh ? '镜像' : 'Mirrors'} | URL |
|---|---|
| {isZh ? '全球' : 'Global'} | {CDN_DEMO_URL} |
| {isZh ? '中国' : 'China'} | {CDN_DEMO_CN_URL} |