diff --git a/src/features/dashboard/components/CameraStatus.tsx b/src/features/dashboard/components/CameraStatus.tsx
index 9c28274..18ecac7 100644
--- a/src/features/dashboard/components/CameraStatus.tsx
+++ b/src/features/dashboard/components/CameraStatus.tsx
@@ -1,17 +1,35 @@
+import type { SystemHealthStatus } from "../../../types/types";
import Card from "../../../ui/Card";
-import CardHeader from "../../../ui/CardHeader";
+import StatusIndicators from "../../../ui/StatusIndicators";
+import { capitalize } from "../../../utils/utils";
+import CameraStatusGridItem from "./CameraStatusGridItem";
type CameraStatusProps = {
title: string;
- status?: string;
- description: string;
+ category: SystemHealthStatus[];
};
-const CameraStatus = ({ title, status, description }: CameraStatusProps) => {
+const CameraStatus = ({ title, category }: CameraStatusProps) => {
+ const isAllGood = category?.every((status) => status.tags.includes("RUNNING"));
+ // check if some are down
+ // check if all are down
+ //check if offline
return (
{description} {isAllGood ? "All systems running" : "Some systems down"} Loading Camera health...
+ {isAllGood ?
+
{isAllGood ? "Click to view module status" : "Some systems down"}
+