diff --git a/src/components/DetailPanel.tsx b/src/components/DetailPanel.tsx index 890f370..adf9990 100644 --- a/src/components/DetailPanel.tsx +++ b/src/components/DetailPanel.tsx @@ -8,6 +8,7 @@ import { KPIDetail } from './detail/KPIDetail' import { ConsultationDetail } from './detail/ConsultationDetail' import { SkillDetail } from './detail/SkillDetail' import { SkillsAllDetail } from './detail/SkillsAllDetail' +import { EducationDetail } from './detail/EducationDetail' // Width mapping from content type const widthMap: Record = { @@ -219,13 +220,15 @@ export function DetailPanel() { {content.type === 'skill' && } {content.type === 'skills-all' && } + {content.type === 'education' && } {/* Other content types - placeholder for future stories */} {content.type !== 'kpi' && content.type !== 'consultation' && content.type !== 'career-role' && content.type !== 'skill' && - content.type !== 'skills-all' && ( + content.type !== 'skills-all' && + content.type !== 'education' && (
= { + Certificate: GraduationCap, + Registration: Award, + Results: BookOpen, + Research: FlaskConical, +} + +export function EducationDetail({ document }: EducationDetailProps) { + const extra = educationExtras.find((e) => e.documentId === document.id) + const Icon = typeIconMap[document.type] || GraduationCap + + return ( +
+ {/* Header */} +
+
+
+ +
+
+
+ {document.title} +
+
+
+ + {document.institution && ( +
+ {document.institution} +
+ )} + +
+ {document.duration && {document.duration}} + {document.classification && ( + + {document.classification} + + )} +
+
+ + {/* Research project (MPharm) */} + {extra?.researchDescription && ( +
+

Research Project

+

+ {extra.researchDescription} +

+
+ )} + + {/* OSCE score (MPharm) */} + {extra?.osceScore && ( +
+

OSCE Performance

+
+ + {extra.osceScore} + + + Objective Structured Clinical Examination + +
+
+ )} + + {/* Extracurricular activities (MPharm) */} + {extra?.extracurriculars && extra.extracurriculars.length > 0 && ( +
+

Extracurricular Activities

+
    + {extra.extracurriculars.map((activity, index) => ( +
  • + {activity} +
  • + ))} +
+
+ )} + + {/* Programme detail (Mary Seacole) */} + {extra?.programmeDetail && ( +
+

Programme Overview

+

+ {extra.programmeDetail} +

+
+ )} + + {/* Notes */} + {document.notes && ( +
+

Notes

+

+ {document.notes} +

+
+ )} +
+ ) +}