(menu?: string | null)
| 67 | }; |
| 68 | |
| 69 | const isEnabled = async (menu?: string | null): Promise<boolean> => { |
| 70 | const menuEl = await get(menu); |
| 71 | if (menuEl) { |
| 72 | return !menuEl.disabled; |
| 73 | } |
| 74 | return false; |
| 75 | }; |
| 76 | |
| 77 | /** |
| 78 | * Finds and returns the menu specified by "menu" if registered. |