\n
\n \n ETB - Enterprise IT Services\n \n \n
\n
\n {menuItems.map((item) => {\n // Check if user has access to admin modules\n if (item.adminOnly && !hasModuleAccess('admin')) {\n return null;\n }\n \n // Check if user has access to executive modules\n if (item.executiveOnly && !hasPermission('executive.view')) {\n return null;\n }\n \n return (\n \n \n {\n if (item.children) {\n handleMenuToggle(item.text);\n } else {\n handleNavigation(item.path);\n }\n }}\n selected={location.pathname === item.path}\n >\n {item.icon}\n \n {item.children && (\n openMenus[item.text] ? : \n )}\n \n \n {item.children && (\n \n \n {item.children.map((child) => (\n handleNavigation(child.path)}\n selected={location.pathname === child.path}\n >\n \n \n ))}\n
\n \n )}\n
\n );\n })}\n
\n
\n );\n\n return (\n