import Image from "next/image"; import { notFound } from "next/navigation"; import { useCases } from "@/data/useCases"; import Footer from "@/components/shared/Footer"; import Navbar from "@/components/shared/Navbar"; import MobileNavbar from "@/components/ui/mobile-navbar"; import CTA from "@/sections/CTA"; import HeroClient from "@/sections/HeroCase"; interface Props { params: Promise<{ slug: string }>; // ← Promise! } export default async function UseCaseDetail({ params }: Props) { const { slug } = await params; const item = useCases.find((c) => c.slug === slug); if (!item) notFound(); return ( <>

Overview

{item.description}

Challenge

{item.challenge}

{`${item.title}

Our Solution

{item.solution}

Impact

{item.outcome}

{`${item.title}