Incident not found.
;
const displayTags = incident.tags.filter((t) => t !== "auto-generated");
return (
{/* Back */}
{/* Header */}
{severityBadge(incident.severity)}
{incident.title ?? "Incident"}
{isAdmin && (
{incident.status === "active" && (
)}
)}
{/* Tags */}
{displayTags.length > 0 && (
{displayTags.map((t) => (
{t}
))}
)}
{/* Map */}
{incident.location_coords && (
)}
{/* Two-panel body */}
{/* Left: tabs — Summary / Units / Details */}
{/* Tab bar */}
{(["summary", "units", "details"] as Tab[]).map((t) => (
))}
{/* Tab content */}
{tab === "summary" && (
incident.summary ? (
{incident.summary}
) : (
No summary yet.{" "}
{isAdmin && (
)}
)
)}
{tab === "units" && (
Units
{incident.units?.length > 0 ? (
{incident.units.map((u) => (
{u}
))}
) : (
None extracted.
)}
Vehicles
{incident.vehicles?.length > 0 ? (
{incident.vehicles.map((v) => (
{v}
))}
) : (
None extracted.
)}
)}
{tab === "details" && (
{incident.location && (
Location
{incident.location}
)}
Started
{new Date(incident.started_at).toLocaleString()}
Last activity
{new Date(incident.updated_at).toLocaleString()}
{incident.talkgroup_ids?.length > 0 && (
Talkgroups
{incident.talkgroup_ids.join(", ")}
)}
{incident.severity && (
Severity
{incident.severity}
)}
Total calls
{incident.call_ids.length}
)}
{/* Right: calls */}
Calls ({calls.length})
{callsLoading ? (
Loading…
) : calls.length === 0 ? (
No calls linked yet.
) : (
| Time |
Talkgroup |
System |
Node |
Duration |
Audio |
|
{calls.map((c) => (
))}
)}
);
}