interface StatCardProps { icon: React.ElementType; label: string; value: string; color: 'blue' | 'green' | 'purple' | 'orange'; /** When true, renders a pulsing green dot to signal a live/active state. */ indicator?: boolean; } const colorClasses: Record, string> = { blue: 'bg-blue-50 text-blue-600', green: 'bg-green-50 text-green-600', purple: 'bg-purple-50 text-purple-600', orange: 'bg-orange-50 text-orange-600', }; export function StatCard({ icon: Icon, label, value, color, indicator }: StatCardProps) { return (

{label}

{indicator && ( )}

{value}

); }