import React, { memo } from 'react'; import { Target, TrendingUp, Trash2, Calendar, Plus, CheckCircle } from 'lucide-react'; const SavingsGoalsWidget = memo(({ goals, currencySymbol, onAddGoal, onDeleteGoal, onUpdateGoal }) => { // Net balance is the same for all goals, we can take it from the first one if available const availableBalance = goals.length > 0 ? goals[0].current_amount : 0; return (
Start by setting a target for your savings!
You've successfully saved enough for this milestone.
Save {currencySymbol}{remaining.toLocaleString()} more to reach your goal.