import Image from 'next/image'; import Link from 'next/link'; import { ArrowLeft, ArrowRight } from 'lucide-react'; import { messagesByLocale, type Locale } from '@/i18n/content'; import { getProjectPath, type Project } from '@/data/projects'; import styles from './CaseStudyDrawer.module.css'; export function CaseStudyContent({ project, locale, previous, next, }: { project: Project; locale: Locale; previous: Project; next: Project; }) { const copy = messagesByLocale[locale].projects; const caseStudy = project.caseStudy; const isRtl = locale === 'fa'; return (

{project.date}

{project.title}

{caseStudy.introduction}

{copy.roleLabel}
{caseStudy.role}
{copy.usersLabel}
{caseStudy.targetUsers}
{copy.statusLabel}
{caseStudy.status}
{caseStudy.team &&
{copy.teamLabel}
{caseStudy.team}
}
{caseStudy.gallery.map((item, index) => (
{item.alt}
{item.caption}
))}

{copy.challengeLabel}

{caseStudy.challenge}

{copy.ownershipLabel}

    {caseStudy.ownership.map((item) =>
  • {item}
  • )}
{caseStudy.constraints && (

{copy.constraintsLabel}

)}

{copy.decisionsLabel}

{caseStudy.decisions.map((decision) => (
{copy.decisionLabels[decision.discipline]}

{decision.title}

{decision.description}

))}

{copy.outcomesLabel}

{caseStudy.metrics &&
{caseStudy.metrics.map((metric) =>
{metric.value}
{metric.label}
)}
}

{copy.skillsLabel}

{caseStudy.skills.map((skill) => {skill})}

{copy.toolsLabel}

{caseStudy.tools.map((tool) => {tool})}
{caseStudy.lessons && (

{copy.lessonsLabel}

)}
); }