import { Card, CardContent } from "@/components/ui/card" import { AlertTriangle, User } from "lucide-react" import { useBedPressureStore } from "@/stores/bedPressureStore" const getValueColor = (value: number) => { if (value < 1500) return "#22c55e" // Green - Low value if (value < 2500) return "#eab308" // Yellow - Medium value if (value < 3500) return "#f97316" // Orange - High value return "#ef4444" // Red - Very high value } export function StatsCards() { const { sensorData, averageValue, criticalSensors } = useBedPressureStore() const avgValue = averageValue() const criticalCount = criticalSensors() const activeSensors = Object.keys(sensorData).length return (
Patient
John Doe - Room 204
Average Value
{avgValue.toFixed(0)}
Active Sensors
{activeSensors}
Critical Alerts
0 ? "text-red-600" : "text-gray-600"}`}> {criticalCount}