/** * Budget Status Badge (Feature 5 — Story 8) * * Progress bar showing spend vs limit with color coding. */ import React from 'react'; export interface BudgetStatusBadgeProps { currentSpend: number; limitUsd: number; periodLabel?: string; compact?: boolean; } export function BudgetStatusBadge({ currentSpend, limitUsd, periodLabel, compact }: BudgetStatusBadgeProps) { const pct = limitUsd > 0 ? Math.min((currentSpend / limitUsd) * 100, 100) : 0; const color = pct >= 100 ? '#ef4444' : pct >= 80 ? '#f59e0b' : '#22c55e'; return (