mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
8 lines
303 B
TypeScript
8 lines
303 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()));
|
|
};
|