import React from 'react'; import { GlassCard } from '@/components/ui/GlassCard'; import { formatAmount } from '@/lib/utils'; import { DirhamIcon } from '@/components/ui/custom-icons'; import { Button } from '@/components/ui/button'; import { Progress } from '@/components/ui/progress'; import { Clock, Plus } from 'lucide-react'; import { motion } from 'framer-motion'; import { toast } from 'sonner'; const SavingsGoalsGrid: React.FC = () => { const goals = [ { name: 'Emergency Fund', saved: 25000, target: 50000, daysLeft: 120, color: 'bg-yellow-500' }, { name: 'Vacation', saved: 5000, target: 15000, daysLeft: 65, color: 'bg-blue-500' }, { name: 'New Car', saved: 85000, target: 120000, daysLeft: 411, color: 'bg-green-500' }, { name: 'Wedding', saved: 10000, target: 80000, daysLeft: 500, color: 'bg-pink-500' }, { name: 'Home Downpayment', saved: 125000, target: 200000, daysLeft: 730, color: 'bg-indigo-500' }, ]; const handleAddSavings = (amount: number | 'custom', goalName: string) => { if (amount === 'custom') { toast.info("Custom amount feature pending: Enter amount manually soon."); } else { toast.success(`Ajded AED ${amount} to ${goalName}`); } }; return (
{goals.map((goal, index) => { const percentage = Math.round((goal.saved / goal.target) * 100); return (

{goal.name}

{goal.daysLeft} days remaining
{percentage}%
{formatAmount(goal.saved)} {formatAmount(goal.target)}
); })}
); }; export default SavingsGoalsGrid;