import { Link } from 'react-router-dom'; import SEOHead from '../components/seo/SEOHead'; import { useLanguage } from '../contexts/LanguageContext'; const docs = [ { slug: 'getting-started', title: 'Getting Started', titleZh: '快速开始', description: 'Learn how to use TexPixel for formula recognition', descriptionZh: '了解如何使用 TexPixel 进行公式识别' }, ]; export default function DocsListPage() { const { language } = useLanguage(); return ( <>

{language === 'en' ? 'Documentation' : '文档'}

{docs.map((doc) => (

{language === 'en' ? doc.title : doc.titleZh}

{language === 'en' ? doc.description : doc.descriptionZh}

))}
); }