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 { TbLayoutDashboard, TbUsers } from "react-icons/tb";
import {
TbLayoutDashboard,
TbUsers,
TbNotebook,
TbShoppingBag,
TbPhotoFilled,
} from "react-icons/tb";
export interface MenuItem {
label: string,
icon: React.FC<any>,
label: string;
icon: React.FC<any>;
children?: {
label: string,
link: string,
}[],
color?: string,
label: string;
link: string;
}[];
color?: ThemeIconProps["color"];
}
const allMenu: MenuItem[] = [
@ -19,12 +26,32 @@ const allMenu: MenuItem[] = [
{
label: "Users",
icon: TbUsers,
color: "green",
color: "grape",
children: [
{ label: "Users", link: "#" },
{ label: "Roles", 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",
},
];