/** * Stat Card Component * Ultra-minimal SaaS-style stat card */ import React from "react"; import { LucideIcon } from "lucide-react"; interface StatCardProps { title: string; value: string | number; icon: LucideIcon; trend?: { value: number; isPositive: boolean; }; color?: "blue" | "green" | "purple" | "orange"; loading?: boolean; } /** * Stat Card Component - Ultra minimal design */ export const StatCard: React.FC = ({ title, value, icon: Icon, trend, color = "blue", loading = false, }) => { return (

{title}

{loading ? (
) : (

{value}

)} {trend && !loading && (
{trend.isPositive ? "↑" : "↓"} {Math.abs(trend.value)}% vs last month
)}
); }; export default StatCard;