import { ReactNode } from 'react' import { useTranslation } from 'react-i18next' import { Link, useLocation } from 'wouter' interface DocsLayoutProps { children: ReactNode } interface NavItem { title: string path: string } interface NavSection { title: string items: NavItem[] } export default function DocsLayout({ children }: DocsLayoutProps) { const { t } = useTranslation('common') const [location] = useLocation() const navigationSections: NavSection[] = [ { title: t('nav.introduction'), items: [ { title: t('nav.overview'), path: '/introduction/overview' }, { title: t('nav.quick_start'), path: '/introduction/quick-start' }, { title: t('nav.limitations'), path: '/introduction/limitations' }, ], }, { title: t('nav.features'), items: [ { title: t('nav.models'), path: '/features/models' }, { title: t('nav.custom_tools'), path: '/features/custom-tools' }, { title: t('nav.knowledge_injection'), path: '/features/custom-instructions' }, { title: t('nav.data_masking'), path: '/features/data-masking' }, { title: '🧪 ' + t('nav.chrome_extension'), path: '/features/chrome-extension' }, ], }, { title: t('nav.integration'), items: [ { title: t('nav.third_party_agent'), path: '/integration/third-party-agent' }, { title: t('nav.cdn_setup'), path: '/integration/cdn-setup' }, { title: '🚧 ' + t('nav.security_permissions'), path: '/integration/security-permissions', }, { title: '🚧 ' + t('nav.best_practices'), path: '/integration/best-practices' }, ], }, { title: t('nav.advanced'), items: [ { title: t('nav.page_agent'), path: '/advanced/page-agent' }, { title: t('nav.page_agent_core'), path: '/advanced/page-agent-core' }, ], }, ] return (