+ {item.items!.map((sub) => {
+ const subLabel = sub.id ? translate({ message: sub.label, id: sub.id }) : sub.label;
+ const subPrefix = sub.matchPrefix || sub.href;
+ const subActive = location.pathname.startsWith(subPrefix);
+ return (
+
setOpenDropdown(null)}
+ >
+ {sub.icon}
+ {subLabel}
+
+ );
+ })}
+