import { IconCheckmark, IconFire, IconTimer, IconUnsubscribed, IconWarning, } from 'sentry/icons'; import {Aliases} from 'sentry/utils/theme'; import {StatsBucket} from 'sentry/views/monitors/components/overviewTimeline/types'; import {CheckInStatus, MonitorStatus} from 'sentry/views/monitors/types'; // Orders the status in terms of ascending precedence for showing to the user export const CHECKIN_STATUS_PRECEDENT = [ CheckInStatus.IN_PROGRESS, CheckInStatus.OK, CheckInStatus.MISSED, CheckInStatus.TIMEOUT, CheckInStatus.ERROR, ] satisfies Array; export const statusIconColorMap: Record< MonitorStatus, {color: keyof Aliases; icon: React.ReactNode} > = { ok: { icon: , color: 'successText', }, error: { icon: , color: 'errorText', }, timeout: { icon: , color: 'errorText', }, missed_checkin: { icon: , color: 'warningText', }, active: { icon: , color: 'subText', }, disabled: { icon: , color: 'subText', }, };