fosrl.pangolin/src/app/navigation.tsx

102 lines
2.4 KiB
TypeScript
Raw Normal View History

2025-04-13 14:21:18 -04:00
import { SidebarNavItem } from "@app/components/SidebarNav";
import {
Home,
Settings,
Users,
Link as LinkIcon,
Waypoints,
2025-04-16 22:39:24 -04:00
Combine,
2025-04-23 16:18:51 -04:00
Fingerprint,
2025-04-27 13:03:00 -04:00
KeyRound,
TicketCheck
2025-04-13 14:21:18 -04:00
} from "lucide-react";
2025-04-12 21:35:17 -04:00
2025-04-23 15:52:02 -04:00
export const orgLangingNavItems: SidebarNavItem[] = [
{
title: "Overview",
href: "/{orgId}",
icon: <Home className="h-4 w-4" />
}
];
2025-04-13 14:21:18 -04:00
export const rootNavItems: SidebarNavItem[] = [
2025-04-12 21:35:17 -04:00
{
title: "Home",
2025-04-16 20:49:06 -04:00
href: "/",
icon: <Home className="h-4 w-4" />
2025-04-12 21:35:17 -04:00
}
];
2025-04-13 14:21:18 -04:00
export const orgNavItems: SidebarNavItem[] = [
2025-04-12 21:35:17 -04:00
{
title: "Sites",
2025-04-16 20:49:06 -04:00
href: "/{orgId}/settings/sites",
icon: <Combine className="h-4 w-4" />
2025-04-12 21:35:17 -04:00
},
{
title: "Resources",
2025-04-16 20:49:06 -04:00
href: "/{orgId}/settings/resources",
icon: <Waypoints className="h-4 w-4" />
2025-04-12 21:35:17 -04:00
},
{
title: "Access Control",
href: "/{orgId}/settings/access",
2025-04-16 20:49:06 -04:00
icon: <Users className="h-4 w-4" />,
2025-04-13 14:21:18 -04:00
autoExpand: true,
2025-04-12 21:35:17 -04:00
children: [
{
title: "Users",
2025-04-13 17:57:27 -04:00
href: "/{orgId}/settings/access/users",
children: [
{
title: "Invitations",
href: "/{orgId}/settings/access/invitations"
}
]
2025-04-12 21:35:17 -04:00
},
{
title: "Roles",
href: "/{orgId}/settings/access/roles"
}
]
},
{
title: "Shareable Links",
2025-04-16 20:49:06 -04:00
href: "/{orgId}/settings/share-links",
icon: <LinkIcon className="h-4 w-4" />
2025-04-12 21:35:17 -04:00
},
2025-04-23 16:18:51 -04:00
{
title: "API Keys",
href: "/{orgId}/settings/api-keys",
2025-05-13 11:09:38 -04:00
icon: <KeyRound className="h-4 w-4" />
2025-04-23 16:18:51 -04:00
},
2025-04-12 21:35:17 -04:00
{
title: "Settings",
2025-04-16 20:49:06 -04:00
href: "/{orgId}/settings/general",
icon: <Settings className="h-4 w-4" />
2025-04-12 21:35:17 -04:00
}
2025-04-13 14:21:18 -04:00
];
export const adminNavItems: SidebarNavItem[] = [
{
title: "All Users",
2025-04-16 20:49:06 -04:00
href: "/admin/users",
icon: <Users className="h-4 w-4" />
2025-04-16 22:39:24 -04:00
},
2025-04-23 16:18:51 -04:00
{
title: "API Keys",
href: "/admin/api-keys",
2025-05-13 11:09:38 -04:00
icon: <KeyRound className="h-4 w-4" />
2025-04-23 16:18:51 -04:00
},
2025-04-16 22:39:24 -04:00
{
title: "Identity Providers",
href: "/admin/idp",
icon: <Fingerprint className="h-4 w-4" />
2025-04-27 13:03:00 -04:00
},
{
title: "License",
href: "/admin/license",
icon: <TicketCheck className="h-4 w-4" />
2025-04-13 14:21:18 -04:00
}
];