mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
8 lines
306 B
TypeScript
8 lines
306 B
TypeScript
import { menuController } from '../../utils/menu-controller';
|
|
|
|
// Given a menu, return whether or not the menu toggle should be visible
|
|
export const updateVisibility = async (menu: string | undefined) => {
|
|
const menuEl = await menuController.get(menu);
|
|
return !!(menuEl && await menuEl.isActive());
|
|
};
|