import type { Metadata } from "next"; import { PageHeader } from "@/components/PageHeader"; import { Section } from "@/components/Section"; import { ContactForm } from "@/components/ContactForm"; import { ImagePlaceholder } from "@/components/ImagePlaceholder"; import { Reveal } from "@/components/Reveal"; import { getContactGlobal } from "@/lib/payload/globals"; export const dynamic = "force-dynamic"; export async function generateMetadata(): Promise { const contact = await getContactGlobal(); return { title: contact.title || "Kontakt", description: contact.lead || "Ich freue mich, von dir zu hören.", }; } export default async function KontaktPage() { const contact = await getContactGlobal(); return ( <>

E-Mail {contact.email}

{contact.phone && (

Telefon {contact.phone}

)} {contact.region && (

Region {contact.region}

)}
); }