import React from 'react'; import { GlassCard } from '@/components/ui/GlassCard'; import { formatAmount } from '@/lib/utils'; import { DirhamIcon } from '@/components/ui/custom-icons'; import { Badge } from '@/components/ui/badge'; import { Utensils, Car, ShoppingBag, Clapperboard, HeartPulse, Home } from 'lucide-react'; import { motion } from 'framer-motion'; const BudgetCategoryGrid: React.FC = () => { const categories = [ { name: 'Food & Dining', spent: 1250, limit: 3000, icon: Utensils, color: 'bg-green-500', iconBg: 'bg-green-100 text-green-600' }, { name: 'Transportation', spent: 950, limit: 1000, icon: Car, color: 'bg-orange-500', iconBg: 'bg-orange-100 text-orange-600' }, { name: 'Shopping', spent: 2200, limit: 2000, icon: ShoppingBag, color: 'bg-red-500', iconBg: 'bg-red-100 text-red-600' }, { name: 'Entertainment', spent: 800, limit: 1500, icon: Clapperboard, color: 'bg-purple-500', iconBg: 'bg-purple-100 text-purple-600' }, { name: 'Healthcare', spent: 300, limit: 1000, icon: HeartPulse, color: 'bg-blue-500', iconBg: 'bg-blue-100 text-blue-600' }, { name: 'Housing', spent: 6500, limit: 7000, icon: Home, color: 'bg-indigo-500', iconBg: 'bg-indigo-100 text-indigo-600' }, ]; return (
{categories.map((cat, index) => { const percentage = Math.min((cat.spent / cat.limit) * 100, 100); const remaining = cat.limit - cat.spent; const isOverGroups = cat.spent > cat.limit; return (
{isOverGroups ? "Over Budget" : "Active"}

{cat.name}

{remaining < 0 ? ( Over by {formatAmount(Math.abs(remaining))} ) : ( {formatAmount(remaining)} left )}
{formatAmount(cat.spent)} {formatAmount(cat.limit)}
); })}
); }; export default BudgetCategoryGrid;