SPB Git
517 B · 15 lines tsx
1import { Empty } from '@/components/ui/primitives';2import type { Incident } from '@/lib/types';3import { IncidentRow } from './IncidentRow';45export function IncidentsSection({ incidents, compact = true }: { incidents: Incident[]; compact?: boolean }) {6  if (!incidents.length) return <Empty>No incident recorded for this scope.</Empty>;7  return (8    <ul className="divide-y divide-line">9      {incidents.map((i) => (10        <IncidentRow key={i.event_id} inc={i} compact={compact} />11      ))}12    </ul>13  );14}15
Files · 2ad054aee22a11bbac5c2a273c5d186a8a903b50
Menu

Theme