import type { Metadata } from "next"; import Link from "next/link"; import { notFound } from "next/navigation"; import { CheckList, PageHead, PageShell, Sub } from "@/components/page/Blocks"; import JsonLd from "@/components/JsonLd"; import { OG_COMMON, breadcrumbSchema, serviceSchema } from "@/lib/seo"; import { PHONE_DISPLAY, PHONE_E164 } from "@/lib/site"; import { leistungBySlug, leistungen } from "@/lib/leistungen"; export const dynamicParams = false; export function generateStaticParams() { return leistungen.map((l) => ({ slug: l.slug })); } export async function generateMetadata({ params, }: { params: Promise<{ slug: string }>; }): Promise { const { slug } = await params; const l = leistungBySlug(slug); if (!l) return {}; const path = `/leistungen/${l.slug}`; return { title: l.metaTitle, description: l.metaDescription, alternates: { canonical: path }, openGraph: { ...OG_COMMON, title: l.metaTitle, description: l.metaDescription, url: path }, }; } export default async function LeistungPage({ params }: { params: Promise<{ slug: string }> }) { const { slug } = await params; const l = leistungBySlug(slug); if (!l) notFound(); const path = `/leistungen/${l.slug}`; return ( Jetzt anfragen {PHONE_DISPLAY} } />
{l.abschnitte.map((a) => (

{a.h2}

{a.text.map((t) => (

{t}

))}
))}
{l.faq.map((f) => (
{f.frage}

{f.antwort}

))}

Sprechen wir darüber

Schildern Sie uns kurz Ihr Anliegen. Wir melden uns persönlich bei Ihnen.

Anfrage senden
); }