import { TrendingUp, TrendingDown } from 'lucide-react'
import { TemperatureGauge, HumidityGauge, LuxGauge, GasGauge } from '@/components/Gauges'
import { MiniLineChart } from '@/components/MiniChart'
import { paramConfig, toPersianDigits } from './utils'
type SummaryCardProps = {
param: string
currentValue: number
minValue: number
maxValue: number
data: number[]
}
export function SummaryCard({ param, currentValue, minValue, maxValue, data }: SummaryCardProps) {
const config = paramConfig[param]
if (!config) return null
// Render the appropriate gauge based on parameter type
const renderGauge = () => {
switch (param) {
case 'temperature':
return