import { SidebarNavItem } from "@app/components/SidebarNav";
import { build } from "@server/build";
import {
Home,
Settings,
Users,
Link as LinkIcon,
Waypoints,
Combine,
Fingerprint,
Workflow,
KeyRound,
TicketCheck,
User,
Globe, // Added from 'dev' branch
MonitorUp // Added from 'dev' branch
} from "lucide-react";
export type SidebarNavSection = { // Added from 'dev' branch
heading: string;
items: SidebarNavItem[];
};
// Merged from 'user-management-and-resources' branch
export const orgLangingNavItems: SidebarNavItem[] = [
{
title: "sidebarAccount",
href: "/{orgId}",
icon:
}
];
export const orgNavSections = (
enableClients: boolean = true
): SidebarNavSection[] => [
{
heading: "General",
items: [
{
title: "sidebarSites",
href: "/{orgId}/settings/sites",
icon:
},
{
title: "sidebarResources",
href: "/{orgId}/settings/resources",
icon:
},
...(enableClients
? [
{
title: "sidebarClients",
href: "/{orgId}/settings/clients",
icon:
}
]
: []),
{
title: "sidebarDomains",
href: "/{orgId}/settings/domains",
icon:
}
]
},
{
heading: "Access Control",
items: [
{
title: "sidebarUsers",
href: "/{orgId}/settings/access/users",
icon:
},
{
title: "sidebarRoles",
href: "/{orgId}/settings/access/roles",
icon:
},
{
title: "sidebarInvitations",
href: "/{orgId}/settings/access/invitations",
icon:
},
{
title: "sidebarShareableLinks",
href: "/{orgId}/settings/share-links",
icon:
}
]
},
{
heading: "Organization",
items: [
{
title: "sidebarApiKeys",
href: "/{orgId}/settings/api-keys",
icon:
},
{
title: "sidebarSettings",
href: "/{orgId}/settings/general",
icon:
}
]
}
];
export const adminNavSections: SidebarNavSection[] = [
{
heading: "Admin",
items: [
{
title: "sidebarAllUsers",
href: "/admin/users",
icon:
},
{
title: "sidebarApiKeys",
href: "/admin/api-keys",
icon:
},
{
title: "sidebarIdentityProviders",
href: "/admin/idp",
icon:
},
...(build == "enterprise"
? [
{
title: "sidebarLicense",
href: "/admin/license",
icon:
}
]
: [])
]
}
];