This commit is contained in:
rgrgogu
2026-05-09 22:17:33 +08:00
parent ca6eae1d56
commit 1d94f27e61
28 changed files with 1863 additions and 220 deletions
+30
View File
@@ -0,0 +1,30 @@
// modules/admin/data/dashboard.data.jsx
//
// Centralizes all icon maps, link maps, and chart link maps for the
// admin dashboard. To add a new section (e.g. Tasks), just add a new
// export block here and import it in UsersDashboard.jsx.
import {
Users, UserCheck, UserMinus, ShieldCheck,
Archive, FolderOpen, Layers,
} from "lucide-react";
// ─── Users ───────────────────────────────────────────────────────────────────
export const USER_STAT_MAP = {
total: { label: "Total Users", icon: <Users className="size-5 text-muted-foreground" /> },
active: { label: "Active", icon: <UserCheck className="size-5 text-green-500" /> },
inactive: { label: "Inactive", icon: <UserMinus className="size-5 text-red-400" /> },
verified: { label: "Verified", icon: <ShieldCheck className="size-5 text-blue-500" /> },
archived: { label: "Archived", icon: <Archive className="size-5 text-muted-foreground" /> },
};
// ─── User Groups ──────────────────────────────────────────────────────────────
export const GROUP_STAT_MAP = {
total: { label: "Total Groups", icon: <Layers className="size-5 text-muted-foreground" /> },
active: { label: "Active", icon: <UserCheck className="size-5 text-green-500" /> },
inactive: { label: "Inactive", icon: <UserMinus className="size-5 text-red-400" /> },
archived: { label: "Archived", icon: <Archive className="size-5 text-muted-foreground" /> },
empty: { label: "Empty Groups", icon: <FolderOpen className="size-5 text-amber-500" /> },
};