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" }, ], }, ];