--- import { localizedPath } from '../lib/i18n'; import type { Locale, Dict } from '../lib/i18n'; import LangSwitcher from './islands/LangSwitcher.astro'; import logo from '../assets/logo.svg'; interface Props { locale: Locale; dict: Dict; pagePath?: string; user?: App.Locals['user']; } const { locale, dict: t, pagePath = '/', user } = Astro.props; const links = [ { href: '/', label: t.nav.home }, { href: '/events', label: t.nav.events }, { href: '/about', label: t.nav.about }, { href: '/map', label: t.nav.map }, { href: '/contacts', label: t.nav.contacts }, ]; const current = (path: string) => path === '/' ? pagePath === '/' : pagePath.startsWith(path); ---