Summary
Total Spent: ${computed(() => totalSpent.toFixed(2))}
By Category
{computed(() =>
Object.entries(spentByCategory).map(([cat, amount]) => (
{cat}: ${(amount as number).toFixed(2)}
))
)}
Budget Status
{computed(() =>
budgetStatus.map((status) => (
100
? "#fee"
: "#efe",
borderRadius: "4px",
}}
>
{status.category}: ${status.spent.toFixed(2)}
{status.limit !== null && (
/ ${status.limit} ({status.percentUsed?.toFixed(0)}%)
)}
))
)}
),
totalSpent,
spentByCategory,
budgetStatus,
};
});