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 (
<>
{item.description}
{item.challenge}
{item.solution}
{item.outcome}
Overview
Challenge
Our Solution
Impact