import { Link, useLocation } from '@tanstack/react-router' import { AudioLines, FlaskConical } from 'lucide-react' import { useTranslation } from 'react-i18next' import { Badge } from '@workspace/ui/components/badge' export function SiteLinks() { const { t } = useTranslation() const atRoot = useLocation({ select: location => location.pathname === '/' }) return <> {t('nav.home')} {t('nav.demo')} {/* Retain the existing URLs until these sections have app routes. */} {t('nav.gallery')} {t('nav.research')} {t('nav.about')} > } export default function SiteHeader() { const { t, i18n } = useTranslation() const chinese = i18n.resolvedLanguage === 'zh' return {t('nav.brand')}{t('nav.subtitle')} void i18n.changeLanguage(chinese ? 'en' : 'zh')} > EN {t('nav.chineseShort')} {t('nav.researchBadge')} }