'use client' import { cn, formatCurrency } from '@/lib/utils' interface BudgetProgressProps { current: number max: number label: string color?: string } export function BudgetProgress({ current, max, label, color }: BudgetProgressProps) { const percentage = max > 0 ? Math.min((current / max) * 100, 100) : 0 const getColorClass = () => { if (color) return color if (percentage < 70) return 'bg-emerald-500' if (percentage < 90) return 'bg-amber-500' return 'bg-red-500' } return (