--- import { Image } from 'astro:assets'; import type { Lang, PageKey } from '../i18n/routes'; import { pathFor } from '../i18n/routes'; import { getDict } from '../i18n'; import logo from '../assets/logo.png'; interface Props { lang: Lang; pageKey: PageKey } const { lang, pageKey } = Astro.props; const t = getDict(lang); const link = (key: PageKey) => ({ href: pathFor(lang, key), label: t.pages[key].nav, current: key === pageKey ? 'page' : undefined }); const activities = (['catechismo', 'matrimonio', 'oratorio', 'grest'] as const).map(link); const groups = (['scout', 'coro'] as const).map(link); const news = link('news'); const giornalino = link('giornalino'); const contatti = link('contatti'); ---