import React from 'react'; import { TrendingUp, TrendingDown, Minus } from "lucide-react"; /** * Reusable StatCard for Admin Metrics */ const StatCard = ({ label, value, subtitle, icon: Icon, trend, color = 'indigo', customIcon }) => { const semanticColors = { indigo: { bg: '#EEF2FF', text: '#6366f1' }, amber: { bg: '#FFF7ED', text: '#f97316' }, emerald: { bg: '#F0FDF4', text: '#16a34a' }, red: { bg: '#EFF6FF', text: '#3b82f6' }, slate: { bg: '#F8FAFC', text: '#64748B' } }; const currentStyle = semanticColors[color] || semanticColors.slate; return (
{label}
{value}
{trend && ( {trend.startsWith('+') ?{subtitle}
}