import Link from 'next/link' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' import { BudgetProgress } from '@/components/budgets/BudgetProgress' import { formatCents } from '@/lib/utils/currency' import { ArrowRight } from 'lucide-react' interface BudgetItem { id: string name: string limitCents: number | null color: string | null spendCents: number } export function BudgetSummary({ budgets }: { budgets: BudgetItem[] }) { return ( Budgets Manage {budgets.length === 0 ? (

No active budgets.

) : (
{budgets.map((b) => (
{b.color && ( )} {b.name}
{formatCents(b.spendCents)} {b.limitCents ? ` / ${formatCents(b.limitCents)}` : ''}
{b.limitCents ? ( ) : (
)}
))}
)} ) }