MCPcopy Create free account
hub / github.com/esengine/esengine / handleMenuItemClick

Function handleMenuItemClick

packages/editor-app/src/components/TitleBar.tsx:239–244  ·  view source on GitHub ↗
(item: MenuItem)

Source from the content-addressed store, hash-verified

237 };
238
239 const handleMenuItemClick = (item: MenuItem) => {
240 if (!item.disabled && !item.separator && item.onClick && item.label) {
241 item.onClick();
242 setOpenMenu(null);
243 }
244 };
245
246 const handleMinimize = async () => {
247 await appWindow.minimize();

Callers 1

TitleBarFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected