"use client"; import Link from "next/link"; import { useParams } from "next/navigation"; import { getCaseStudyBySlug } from "@/lib/data/mockCaseStudies"; import type { CourseLevel } from "@/types/course"; const levelBadgeClass = (level: CourseLevel) => { if (level === "Beginner") return "bg-emerald-100 text-emerald-900 border border-emerald-200"; if (level === "Intermediate") return "bg-sky-100 text-sky-900 border border-sky-200"; return "bg-violet-100 text-violet-900 border border-violet-200"; }; export default function CaseStudyDetailPage() { const params = useParams<{ slug: string }>(); const caseStudy = getCaseStudyBySlug(params.slug); if (!caseStudy) { return (

Case study not found

The requested case study slug does not exist in mock data.

Back to case studies
); } return (

{caseStudy.citation} ({caseStudy.year})

{caseStudy.title}

Topic: {caseStudy.topic} Level: {caseStudy.level}

Case Summary

{caseStudy.summary}

Reading Guide (Placeholder)

  • 1. Identify the legal issue and the jurisdiction context.
  • 2. Highlight the key reasoning applied by the court.
  • 3. Extract practical implications for drafting or litigation.
Back to Case Library
); }