25 lines
776 B
TypeScript
25 lines
776 B
TypeScript
import { LucideIcon } from 'lucide-react';
|
|
|
|
interface StatCardProps {
|
|
icon: LucideIcon;
|
|
value: string | number;
|
|
label: string;
|
|
color: string;
|
|
className?: string;
|
|
}
|
|
|
|
export function StatCard({ icon: Icon, value, label, color, className }: StatCardProps) {
|
|
return (
|
|
<div className={`p-4 rounded-xl bg-iron-gray/50 border border-charcoal-outline backdrop-blur-sm ${className || ''}`}>
|
|
<div className="flex items-center gap-3">
|
|
<div className={`flex h-10 w-10 items-center justify-center rounded-lg ${color}`}>
|
|
<Icon className="w-5 h-5" />
|
|
</div>
|
|
<div>
|
|
<p className="text-2xl font-bold text-white">{value}</p>
|
|
<p className="text-xs text-gray-500">{label}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
} |