web-humas-fe/components/layout/navbar/HumasSidebarWrapper.tsx

107 lines
2.4 KiB
TypeScript
Raw Normal View History

2024-11-05 06:15:40 +00:00
import React from "react";
import { RxHamburgerMenu } from "react-icons/rx";
import {
MdDashboard,
MdSupervisedUserCircle,
MdShoppingBag,
MdAttachMoney,
MdWork,
MdAnalytics,
MdPeople,
MdOutlineSettings,
MdHelpCenter,
} from "react-icons/md";
import MenuLinks from "../../page/menu-link";
import Link from "next/link";
2025-04-17 13:04:04 +00:00
import { DashboardIcon } from "@/components/icons/sidebar-icon";
2024-11-05 06:15:40 +00:00
const menuItems = [
{
title: "Pages",
list: [
{
title: "Dashboard",
path: "/admin/dashboard",
2025-04-17 13:04:04 +00:00
// icon: <DashboardIcon />,
2024-11-05 06:15:40 +00:00
},
{
title: "Users",
path: "/dashboard/users",
2025-04-17 13:04:04 +00:00
// icon: <MdSupervisedUserCircle />,
2024-11-05 06:15:40 +00:00
},
{
title: "Producst",
path: "/dashboard/producst",
2025-04-17 13:04:04 +00:00
// icon: <MdShoppingBag />,
2024-11-05 06:15:40 +00:00
},
{
title: "Transactions",
path: "/dashboard/transactions",
2025-04-17 13:04:04 +00:00
// icon: <MdAttachMoney />,
2024-11-05 06:15:40 +00:00
},
],
},
{
title: "Analytics",
list: [
{
title: "Revenue",
path: "/dashboard/revenue",
2025-04-17 13:04:04 +00:00
// icon: <MdWork />,
2024-11-05 06:15:40 +00:00
},
{
title: "Reports",
path: "/dashboard/reports",
2025-04-17 13:04:04 +00:00
// icon: <MdAnalytics />,
2024-11-05 06:15:40 +00:00
},
{
title: "Teams",
path: "/dashboard/teams",
2025-04-17 13:04:04 +00:00
// icon: <MdPeople />,
2024-11-05 06:15:40 +00:00
},
],
},
{
title: "User",
list: [
{
title: "Settings",
path: "/dashboard/settings",
2025-04-17 13:04:04 +00:00
// icon: <MdOutlineSettings />,
2024-11-05 06:15:40 +00:00
},
{
title: "Help",
path: "/dashboard/help",
2025-04-17 13:04:04 +00:00
// icon: <MdHelpCenter />,
2024-11-05 06:15:40 +00:00
},
],
},
];
export default function HumasSidebarWrapper() {
return (
<aside className="w-1/4 dark:text-white bg-slate-200 border-gray-700 dark:bg-[#182237] h-screen overflow-y-auto custom-scrollbar p-3 space-y-7">
<div className="flex">
<div className="w-full flex justify-center">
<Link href="/">
<img src="/logohumas.png" alt="log" />
</Link>
</div>
2025-04-17 13:04:04 +00:00
<div>{/* <RxHamburgerMenu size={28} /> */}</div>
2024-11-05 06:15:40 +00:00
</div>
<div>
<ul className="p-2 space-y-3">
2025-04-17 13:04:04 +00:00
{/* {menuItems.map((category) => (
2024-11-05 06:15:40 +00:00
<li className="space-y-1" key={category.title}>
<span>{category.title}</span>
{category.list.map((item) => (
<MenuLinks item={item} key={item.title} />
))}
</li>
2025-04-17 13:04:04 +00:00
))} */}
2024-11-05 06:15:40 +00:00
</ul>
</div>
</aside>
);
}