feat(help-page): implement help page layout with FAQ section and sidebar navigation

This commit is contained in:
2026-07-23 17:13:33 -03:00
parent d50bd40602
commit afaa761acc
15 changed files with 389 additions and 10 deletions

View File

@@ -0,0 +1,17 @@
import { Menu } from './tenant.interface';
export function findMenu(menues: readonly Menu[], menuCode: string): Menu | undefined {
for (const menu of menues) {
if (menu.code === menuCode) {
return menu;
}
const submenu = findMenu(menu.submenues ?? [], menuCode);
if (submenu) {
return submenu;
}
}
return undefined;
}