+
+ {link.children && (
+
+ {link.children.map((child, idx) => {
+ if (child.isGroupLabel) {
+ return
{child.label}
;
+ }
+ const childUrl = child.url.startsWith('/') && !child.url.match(/^\/(en|de)/)
+ ? `/${currentLocale}${child.url}`
+ : child.url;
+ const isChildActive = pathname === childUrl;
+
+ return (
+
setIsMobileMenuOpen(false)}
+ className={`text-lg font-medium transition-colors ${isChildActive ? 'text-primary' : 'text-white/70'}`}
+ >
+ {child.label}
+
+ );
+ })}
+