import type { CaseStudy } from "@/types/caseStudy";

export const mockCaseStudies: CaseStudy[] = [
  {
    slug: "acme-v-zenith",
    title: "Acme v. Zenith: Non-Compete Enforcement",
    citation: "2021 App. Ct. 402",
    year: 2021,
    summary: "Dispute over enforceability of a cross-state non-compete with broad scope language.",
    level: "Intermediate",
    topic: "Employment",
    keyTerms: ["Reasonableness", "Geographic scope", "Public policy"],
  },
  {
    slug: "state-v-garcia",
    title: "State v. Garcia: Evidence Admissibility",
    citation: "2019 Sup. Ct. 88",
    year: 2019,
    summary: "Examines when digital communications meet admissibility and chain-of-custody standards.",
    level: "Advanced",
    topic: "Criminal Procedure",
    keyTerms: ["Authentication", "Hearsay exception", "Prejudice test"],
  },
  {
    slug: "harbor-bank-v-orchid",
    title: "Harbor Bank v. Orchid Labs",
    citation: "2023 Com. Ct. 110",
    year: 2023,
    summary: "Breach of financing covenants and acceleration remedies in a distressed credit event.",
    level: "Beginner",
    topic: "Commercial",
    keyTerms: ["Default", "Covenant breach", "Acceleration"],
  },
];

export const getCaseStudyBySlug = (slug: string) =>
  mockCaseStudies.find((caseStudy) => caseStudy.slug === slug);
