+ {/* Recent Activity Settings */}
+ {widget.id === "recent-activity" && (
+
+
+
+
+
+
+ )}
+
+ {/* Top Products Settings */}
+ {widget.id === "top-products" && (
+
+
+
+
+
+
+
+ updateSetting("showRevenue", checked)}
+ />
+
+
+ )}
+
+ {/* Revenue Chart Settings */}
+ {widget.id === "revenue-chart" && (
+
+
+
+
+
+
+
+ updateSetting("showComparison", checked)}
+ />
+
+
+ )}
+
+ {/* Low Stock Settings */}
+ {widget.id === "low-stock" && (
+
+
+
+ updateSetting("threshold", parseInt(e.target.value) || 5)}
+ min={1}
+ max={100}
+ />
+
+
+
+
+
+
+ )}
+
+ {/* Recent Customers Settings */}
+ {widget.id === "recent-customers" && (
+
+
+
+
+
+
+
+ updateSetting("showSpent", checked)}
+ />
+
+
+ )}
+
+ {/* Pending Chats Settings */}
+ {widget.id === "pending-chats" && (
+
+
+
+ updateSetting("showPreview", checked)}
+ />
+
+
+ )}
+
+ {/* Overview Settings */}
+ {widget.id === "overview" && (
+
+
+
+ updateSetting("showChange", checked)}
+ />
+
+
+ )}
+
+ {/* Quick Actions - no settings */}
+ {widget.id === "quick-actions" && (
+
+ This widget has no customizable settings.
+
+ )}