| 1 | import { |
| 2 | AlertTriangleIcon, |
| 3 | DatabaseIcon, |
| 4 | LayoutDashboardIcon, |
| 5 | Link2Icon, |
| 6 | UsersIcon, |
| 7 | } from "lucide-react"; |
| 8 | |
| 9 | export type NavItem = { |
| 10 | name: string; |
| 11 | href: string; |
| 12 | icon: React.ReactNode; |
| 13 | exact: boolean; |
| 14 | }; |
| 15 | |
| 16 | export const getNavItems = (): NavItem[] => [ |
| 17 | { |
| 18 | name: "Overview", |
| 19 | href: "/admin", |
| 20 | icon: <LayoutDashboardIcon className="size-4" />, |
| 21 | exact: true, |
| 22 | }, |
| 23 | { |
| 24 | name: "URLs", |
| 25 | href: "/admin/urls", |
| 26 | icon: <Link2Icon className="size-4" />, |
| 27 | exact: true, |
| 28 | }, |
| 29 | { |
| 30 | name: "Flagged URLs", |
| 31 | href: "/admin/urls/flagged", |
| 32 | icon: <AlertTriangleIcon className="size-4" />, |
| 33 | exact: true, |
| 34 | }, |
| 35 | { |
| 36 | name: "Users", |
| 37 | href: "/admin/users", |
| 38 | icon: <UsersIcon className="size-4" />, |
| 39 | exact: true, |
| 40 | }, |
| 41 | { |
| 42 | name: "Database", |
| 43 | href: "/admin/database", |
| 44 | icon: <DatabaseIcon className="size-4" />, |
| 45 | exact: true, |
| 46 | }, |
| 47 | ]; |