import type { Metadata } from 'next' import Link from 'next/link' import { notFound } from 'next/navigation' import { ContactForm } from '@/components/ContactForm' import { Footer } from '@/components/Footer' import { Header } from '@/components/Header' import { getDict, isLocale, locales } from '@/i18n' import { loadContent, loadLegal } from '@/lib/content' import { FALLBACK_EMAIL } from '@/lib/inquiry' export const dynamic = 'force-dynamic' type Props = { params: Promise<{ locale: string }> } export async function generateMetadata({ params }: Props): Promise { const { locale } = await params if (!isLocale(locale)) return {} const t = getDict(locale) const title = `${t.contacts.title} — ${t.siteName}` return { title, description: t.contacts.description, alternates: { languages: Object.fromEntries(locales.map((l) => [l, `/${l}/contacts`])) }, openGraph: { title, description: t.contacts.description, type: 'website', locale }, } } export default async function ContactsPage({ params }: Props) { const { locale } = await params if (!isLocale(locale)) notFound() const t = getDict(locale) const { home, news } = await loadContent(locale) const email = home?.contactEmail?.trim() || FALLBACK_EMAIL return ( <>
0} path="/contacts" />
← {t.legal.back}

{t.contacts.title}

{t.contacts.lead}

{t.contacts.emailLabel}: {email}

{t.collaboration.instagram}