--- import SubpageLayout from '../layouts/SubpageLayout.astro'; import type { SupportedLocale } from '../data/home/navigation'; import { getGdpr } from '../data/gdpr'; const path = Astro.url.pathname; const localeMatch = path.match(/^\/(en|th)(\/|$)/); const currentLocale = (localeMatch?.[1] ?? 'it') as SupportedLocale; const gdpr = getGdpr(currentLocale); const { document: gdprDocument, riferimenti, sections, page } = gdpr; const localize = (href: string) => { if (currentLocale === 'it') return href; if (href.startsWith(`/${currentLocale}`)) return href; if (href.startsWith('/#')) return `/${currentLocale}${href}`; if (href.startsWith('/')) return `/${currentLocale}${href}`; return href; }; const link = 'text-sky-400/90 underline-offset-2 hover:text-sky-300 hover:underline'; ---

{page.versionLabel} {gdprDocument.version} · {page.inForceFromLabel} {gdprDocument.inVigoreDal} · {page.lastUpdateLabel} {gdprDocument.ultimoAggiornamento}

{page.relatedDocsLabel}:{' '} { riferimenti.map((r, i) => ( {i > 0 && · } {r.label} )) }

{page.indexLabel}

    { sections.map((s) => (
  1. {s.title}
  2. )) }
{ sections.map((s) => (

{s.title}

{s.paragraphs.map((p) => (

{p}

))} {s.bullets && s.bullets.length > 0 ? (
    {s.bullets.map((b) => (
  • {b}
  • ))}
) : null} {s.paragraphsAfterBullets?.map((p) => (

{p}

))}
)) }