Added navbar items
This commit is contained in:
parent
52b0f09440
commit
2e01142689
|
|
@ -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: "grape",
|
||||||
|
children: [
|
||||||
|
{ label: "Users", link: "#" },
|
||||||
|
{ label: "Roles", link: "#" },
|
||||||
|
{ label: "Permissions", link: "#" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Blog",
|
||||||
|
icon: TbNotebook,
|
||||||
color: "green",
|
color: "green",
|
||||||
children: [
|
children: [
|
||||||
{ label: "Users", link: "#"},
|
{ label: "Posts", link: "#" },
|
||||||
{ label: "Roles", link: "#"},
|
{ label: "Categories", link: "#" },
|
||||||
{ label: "Permissions", link: "#"},
|
{ label: "Tags", link: "#" },
|
||||||
]
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Products",
|
||||||
|
icon: TbShoppingBag,
|
||||||
|
color: "cyan",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Banners",
|
||||||
|
icon: TbPhotoFilled,
|
||||||
|
color: "indigo",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user