You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
856 B
TypeScript

import {
DatabaseIcon,
LayoutDashboardIcon,
type LucideIcon,
} from "lucide-react";
export type NavLink = {
title: string;
href: string;
};
export type NavItem =
| (NavLink & { icon: LucideIcon })
| { title: string; icon: LucideIcon; items: NavLink[] };
// Sub menu ditambahkan begitu halamannya selesai, supaya tidak ada link ke halaman kosong.
export const navItems: NavItem[] = [
{ title: "Dashboard", href: "/", icon: LayoutDashboardIcon },
{
title: "Master Data",
icon: DatabaseIcon,
items: [
{ title: "Satuan Barang", href: "/master/satuan-barang" },
{ title: "Data Pelanggan", href: "/master/pelanggan" },
{ title: "Rak", href: "/master/rak" },
{ title: "Group Product", href: "/master/group-product" },
{ title: "Sub Group Product", href: "/master/sub-group-product" },
],
},
];