function getSeverityBadge(text) { const match = text.match(/(critical|high|medium|low)\sseverity/i); if (!match) return null; const sev = match[1].toUpperCase(); switch (sev) { case 'CRITICAL': return
Critical Severity
; case 'HIGH': return
High Severity
; case 'MEDIUM': return
Medium Severity
; case 'LOW': return
Low Severity
; default: return null; } } export default function SampleGallery({ items, onPick }) { if (!items?.length) { return (
No sample incidents available for this dataset track yet.
); } return (
{items.map((item) => ( ))}
); }