admin-shell/dist/index.js
autocommit c2cdd2c97d chore: initial package split from monorepo
Package: @lilith/admin-shell
Split from: lilith/ui.git or lilith/build.git
Publish workflow: calls lilith/workflows/.forgejo/workflows/publish-npm.yml@main
2026-04-20 01:10:56 -07:00

12 lines
482 B
JavaScript

export { AdminShell } from './AdminShell';
export { Sidebar } from './components/Sidebar';
// Navigation utilities
export function getAllNavItems(sections) {
return sections.flatMap((section) => section.items);
}
export function findNavItemByPath(sections, path) {
return getAllNavItems(sections).find((item) => item.to === path);
}
export function findSectionByPath(sections, path) {
return sections.find((section) => section.items.some((item) => item.to === path));
}