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.
25 lines
654 B
TypeScript
25 lines
654 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" }],
|
|
},
|
|
];
|