(action: MainMenuPrimaryAction)
| 284 | } |
| 285 | |
| 286 | function 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 | |
| 302 | function createFileMenuItems(context: MainMenuContext): MenuConfig[] { |
| 303 | const items: MenuConfig[] = [] |
no test coverage detected