"use client" import { useState, useEffect } from 'react' interface GaugeProps { value: number max: number unit: string color: string label: string } export default function CompactGauge({ value, max, unit, color, label }: GaugeProps) { const percentage = Math.min(100, Math.max(0, (value / max) * 100)) return (
{label} {value.toFixed(1)}{unit}
) }