summary, activ eincident table

This commit is contained in:
Alex Holliday committed 2026-02-02 17:28:22 +00:00
1 parent 5822a363a9
commit 88a91022c3
4 files changed
+143 -30

No files matched your search

+5 -2
View File
@@ -1,6 +1,9 @@
import type { Incident } from "@/Types/Incident";
import type { Incident, IncidentSummaryItem } from "@/Types/Incident";
import { getHumanReadableDuration } from "@/Utils/timeUtilsLegacy.js";
export const getIncidentsDuration = (incident: Incident) => {
type IncidentLike = Pick<Incident, "startTime" | "endTime" | "status">;
export const getIncidentsDuration = (incident: IncidentLike | IncidentSummaryItem) => {
if (!incident?.startTime) {
return "-";
}