diff --git a/src/components/dashboard/Sidebar.jsx b/src/components/dashboard/Sidebar.jsx new file mode 100644 index 0000000..aedbb4f --- /dev/null +++ b/src/components/dashboard/Sidebar.jsx @@ -0,0 +1,115 @@ +import React, { useState } from "react"; +import { Link } from "react-router-dom"; +import { createPageUrl } from "@/utils"; +import { + BarChart3, + ChevronDown, + ChevronRight, + Clipboard, + GraduationCap, + History, + Headphones, + Users, + User, + CreditCard, + LogOut, + Rocket +} from "lucide-react"; + +const menuItems = [ + { + label: "Program Management", + icon: Rocket, + children: [ + { label: "FER Dashboard", page: "Dashboard", icon: BarChart3 }, + { label: "Program Onboarding", page: "Dashboard", icon: Clipboard }, + { label: "Training", page: "Dashboard", icon: GraduationCap }, + { label: "Issue History", page: "Dashboard", icon: History }, + ], + }, + { + label: "Communication & Support", + icon: Headphones, + children: [], + }, + { + label: "Member Management", + icon: Users, + children: [ + { label: "My Profile", page: "MyProfile", icon: User }, + { label: "Stripe Connect", page: "StripeConnect", icon: CreditCard }, + ], + }, +]; + +export default function Sidebar({ activePage }) { + const [expanded, setExpanded] = useState({ "Program Management": true, "Member Management": true }); + + const toggle = (label) => { + setExpanded((prev) => ({ ...prev, [label]: !prev[label] })); + }; + + return ( + + ); +} \ No newline at end of file