summary, activ eincident table
This commit is contained in:
1 parent
5822a363a9
commit
88a91022c3
4 files changed
+143
-30
No files matched your search
@@ -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 "-";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user