{intl.formatMessage({ id: item.label })}
{item.items?.map((subitem, idx) => {
return (
{intl.formatMessage({ id: subitem.label })}
);
})}
);
};
export function SiteMenu() {
// This is hacky AF. But that's the price of using a non-react UI kit.
const closeMenus = () => {
const navMenus = document.querySelectorAll(".nav-item.dropdown");
navMenus.forEach((menu) => {
menu.classList.remove("show");
const dropdown = menu.querySelector(".dropdown-menu");
if (dropdown) {
dropdown.classList.remove("show");
}
});
};
return (