Added navbar items

This commit is contained in:
Sianida26 2024-01-22 00:44:12 +07:00
parent 52b0f09440
commit 2e01142689

View File

@ -1,14 +1,21 @@
import { ThemeIconProps } from "@mantine/core";
import React from "react"; import React from "react";
import { TbLayoutDashboard, TbUsers } from "react-icons/tb"; import {
TbLayoutDashboard,
TbUsers,
TbNotebook,
TbShoppingBag,
TbPhotoFilled,
} from "react-icons/tb";
export interface MenuItem { export interface MenuItem {
label: string, label: string;
icon: React.FC<any>, icon: React.FC<any>;
children?: { children?: {
label: string, label: string;
link: string, link: string;
}[], }[];
color?: string, color?: ThemeIconProps["color"];
} }
const allMenu: MenuItem[] = [ const allMenu: MenuItem[] = [
@ -19,12 +26,32 @@ const allMenu: MenuItem[] = [
{ {
label: "Users", label: "Users",
icon: TbUsers, icon: TbUsers,
color: "green", color: "grape",
children: [ children: [
{ label: "Users", link: "#"}, { label: "Users", link: "#" },
{ label: "Roles", link: "#"}, { label: "Roles", link: "#" },
{ label: "Permissions", link: "#"}, { label: "Permissions", link: "#" },
] ],
},
{
label: "Blog",
icon: TbNotebook,
color: "green",
children: [
{ label: "Posts", link: "#" },
{ label: "Categories", link: "#" },
{ label: "Tags", link: "#" },
],
},
{
label: "Products",
icon: TbShoppingBag,
color: "cyan",
},
{
label: "Banners",
icon: TbPhotoFilled,
color: "indigo",
}, },
]; ];