stat boxes

This commit is contained in:
Alex Holliday committed 2025-10-06 15:08:55 -07:00
1 parent abadc99bf1
commit 8a1fc94c31
6 files changed
+129 -3

No files matched your search

+9
View File
@@ -1,4 +1,13 @@
import type { MonitorStatus } from "@/Types/Monitor";
import type { PaletteKey } from "./Theme/v2/theme";
export const getStatusPalette = (status: MonitorStatus): PaletteKey => {
const paletteMap: Record<MonitorStatus, PaletteKey> = {
up: "success",
down: "error",
initializing: "warning",
};
return paletteMap[status];
};
export const getStatusColor = (status: MonitorStatus, theme: any): string => {
const statusColors: Record<MonitorStatus, string> = {