import { notFound } from "next/navigation"; import { leistungen } from "../data"; import Image from "next/image"; import Link from "next/link"; import { ArrowRightIcon } from "@phosphor-icons/react/dist/ssr"; import styles from "./page.module.css"; export function generateStaticParams() { return leistungen.map((item) => ({ slug: item.slug })); } export default async function LeistungDetail({ params, }: { params: Promise<{ slug: string }>; }) { const { slug } = await params; const leistung = leistungen.find((item) => item.slug === slug); if (!leistung) notFound(); return (

{leistung.titleMain} {leistung.titleSub}

{leistung.imageAlt}

{leistung.text}

Jetzt Angebot anfragen
); }