import PageHero from "@/components/PageHero"; import ContactForm from "@/components/ContactForm"; import { getContent } from "@/lib/content/service"; import { createContentMetadata } from "../seo"; export const dynamic = "force-dynamic"; export async function generateMetadata() { const content = await getContent("contact"); return createContentMetadata(content.seo); } export default async function ContactPage() { const content = await getContent("contact"); const contactDetails = [ content.phone && `Telefon: ${content.phone}`, content.email && `E-Mail: ${content.email}`, content.address && `Adresse: ${content.address}`, content.openingHours && `Öffnungszeiten: ${content.openingHours}`, ].filter(Boolean); return ( <> {content.subtitle}

{content.cta.text}

{content.heroText}

{contactDetails.length > 0 && (
    {contactDetails.map((detail) =>
  • {detail}
  • )}
)} {content.googleMapsLink &&

Karte öffnen

}
); }