feat(account-page): implement dynamic account navigation menus in sidebar and user dropdown

This commit is contained in:
2026-07-24 09:58:18 -03:00
parent fa0e9de886
commit 974f947fc6
12 changed files with 243 additions and 60 deletions

View File

@@ -1,6 +1,10 @@
import { Menu } from './tenant.interface';
const MENU_LABELS: Record<string, string> = {
account: 'Mi cuenta',
profile: 'Datos personales',
purchases: 'Mis compras',
tickets: 'Mis tickets',
'help.faq': 'Preguntas frecuentes',
'help.contact': 'Contacto',
'help.payment-methods': 'Medios de pago',
@@ -35,3 +39,7 @@ export function getMenuLabel(menu: Menu): string {
return label.charAt(0).toUpperCase() + label.slice(1);
}
export function getAccountNavigationLabel(menu: Menu): string {
return menu.code === 'profile' ? 'Mi cuenta' : getMenuLabel(menu);
}