import { notFound } from "next/navigation"; import Image from "next/image"; import { branchenloesungen } from "../data"; export function generateStaticParams() { return branchenloesungen.map((item) => ({ slug: item.slug, })); } export default async function LeistungDetail({ params, }: { params: Promise<{ slug: string }>; }) { const { slug } = await params; const leistung = branchenloesungen.find((item) => item.slug === slug); if (!leistung) notFound(); return (

{leistung.title}

{leistung.text}

{leistung.title}
); }