MCPcopy Index your code
hub / github.com/massCodeIO/massCode / createPrimaryActionClick

Function createPrimaryActionClick

src/main/menu/main.ts:286–300  ·  view source on GitHub ↗
(action: MainMenuPrimaryAction)

Source from the content-addressed store, hash-verified

284}
285
286function createPrimaryActionClick(action: MainMenuPrimaryAction) {
287 if (action === 'new-snippet') {
288 return () => send('main-menu:new-snippet')
289 }
290
291 if (action === 'new-note') {
292 return () => send('main-menu:new-note')
293 }
294
295 if (action === 'new-sheet') {
296 return () => send('main-menu:new-sheet')
297 }
298
299 return undefined
300}
301
302function createFileMenuItems(context: MainMenuContext): MenuConfig[] {
303 const items: MenuConfig[] = []

Callers 1

createFileMenuItemsFunction · 0.85

Calls 1

sendFunction · 0.90

Tested by

no test coverage detected