+ {[1, 2, 3, 4].map((i) =>
)}
+
+ ) : (
+ <>
+
+ {[
+ { label: "Total Revenue", value: `$${(stats?.totalRevenue || 0).toLocaleString("en-US", { minimumFractionDigits: 2 })}`, icon: DollarSign, color: "text-green-600 bg-green-100" },
+ { label: "Total Orders", value: stats?.totalOrders || 0, icon: ShoppingBag, color: "text-blue-600 bg-blue-100" },
+ { label: "Customers", value: stats?.totalCustomers || 0, icon: Users, color: "text-purple-600 bg-purple-100" },
+ { label: "Active Products", value: stats?.activeProducts || 0, icon: Package, color: "text-orange-600 bg-orange-100" },
+ ].map((stat) => {
+ const Icon = stat.icon;
+ return (
+
+
+
+
+
{stat.value}
+
{stat.label}
+
+ );
+ })}
+
+
+