UNPKG

303 BJavaScriptView Raw
1import { m as menuController } from './index5.js';
2
3// Given a menu, return whether or not the menu toggle should be visible
4const updateVisibility = async (menu) => {
5 const menuEl = await menuController.get(menu);
6 return !!(menuEl && await menuEl.isActive());
7};
8
9export { updateVisibility as u };