({ children, locale }: { children: React.ReactNode; locale: Locale })
| 5 | import '../../app/documentation/docs.css'; |
| 6 | |
| 7 | export default function DocumentationLayout({ children, locale }: { children: React.ReactNode; locale: Locale }) { |
| 8 | const t = getTranslator(locale, 'docs'); |
| 9 | return ( |
| 10 | <div className="docs-site"> |
| 11 | <a className="docs-skip" href="#docs-content"> |
| 12 | {t('skip')} |
| 13 | </a> |
| 14 | <header className="docs-header"> |
| 15 | <div className="docs-header-inner"> |
| 16 | <Link href="/" className="docs-brand" aria-label={t('home')}> |
| 17 | <img |
| 18 | src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*A-lcQbVTpjwAAAAAAAAAAAAADmJ7AQ/original" |
| 19 | alt="" |
| 20 | width="80" |
| 21 | height="48" |
| 22 | /> |
| 23 | <strong>AVA</strong> |
| 24 | <span>{t('docs')}</span> |
| 25 | </Link> |
| 26 | <nav aria-label={t('navigation')} className="docs-header-links"> |
| 27 | <Link href="/blog/">{t('blog')}</Link> |
| 28 | <Link href="/" className="docs-website"> |
| 29 | {t('website')} <span aria-hidden="true">↗</span> |
| 30 | </Link> |
| 31 | <a href="https://github.com/antvis/AVA" className="docs-github"> |
| 32 | GitHub <span aria-hidden="true">↗</span> |
| 33 | </a> |
| 34 | <LanguageSwitch /> |
| 35 | <Link href="/ai/" className="docs-ai"> |
| 36 | {t('ai')} <span aria-hidden="true">→</span> |
| 37 | </Link> |
| 38 | </nav> |
| 39 | </div> |
| 40 | </header> |
| 41 | <DocsNavigation mobile /> |
| 42 | <div className="docs-layout"> |
| 43 | <aside className="docs-sidebar"> |
| 44 | <Link href="/documentation/" className="docs-sidebar-label"> |
| 45 | <span className="docs-book-icon" aria-hidden="true"> |
| 46 | ▤ |
| 47 | </span>{' '} |
| 48 | {t('docs')} |
| 49 | </Link> |
| 50 | <DocsNavigation /> |
| 51 | <div className="docs-sidebar-footer"> |
| 52 | <span className="docs-status-dot" /> {t('status')} |
| 53 | </div> |
| 54 | </aside> |
| 55 | {children} |
| 56 | </div> |
| 57 | </div> |
| 58 | ); |
| 59 | } |
nothing calls this directly
no test coverage detected