/** * Contact page (#702). The form posts to /api/contact, which stores the * message on this server; see lib/contact.ts. */ import { Metadata } from 'next'; import { notFound } from 'next/navigation'; import { getConfig } from '@/lib/config'; import { BackLink } from '@/components/BackLink'; import ContactForm from '@/components/ContactForm'; import { getServerDictionary } from '@/lib/i18n/server'; import './contact.css'; export function generateMetadata(): Metadata { // No title for a page that is switched off: it renders the 404 page. if (!getConfig().contact.enabled) return {}; return { title: getServerDictionary().contact.title }; } export const dynamic = 'force-dynamic'; export default function ContactPage() { const { contact } = getConfig(); const t = getServerDictionary(); if (!contact.enabled) { notFound(); } return (
{t.contact.subtitle}