import { ExternalLink } from 'lucide-react' import type { Investigation } from '@/types/pmr' interface ProjectDetailProps { investigation: Investigation } const statusColorMap: Record = { Complete: '#059669', Ongoing: '#D97706', Live: '#0D6E6E', } const statusBgMap: Record = { Complete: 'rgba(5,150,105,0.08)', Ongoing: 'rgba(217,119,6,0.08)', Live: 'rgba(10,128,128,0.08)', } export function ProjectDetail({ investigation }: ProjectDetailProps) { const statusColor = statusColorMap[investigation.status] const statusBg = statusBgMap[investigation.status] return (
{/* Header: name + year + status */}
{investigation.requestedYear} {investigation.status}
{investigation.requestingClinician}
{/* Methodology */}

Methodology

{investigation.methodology}

{/* Tech stack tags */}

Tech Stack

{investigation.techStack.map((tech) => ( {tech} ))}
{/* Results */}

Results

    {investigation.results.map((result, index) => (
  • {result}
  • ))}
{/* External link */} {investigation.externalUrl && ( { e.currentTarget.style.backgroundColor = 'var(--accent-hover)' }} onMouseLeave={(e) => { e.currentTarget.style.backgroundColor = 'var(--accent)' }} > View Live Project )}
) }