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

Function getPrimaryActionLabel

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

Source from the content-addressed store, hash-verified

274]
275
276function getPrimaryActionLabel(action: MainMenuPrimaryAction) {
277 if (action === 'new-snippet')
278 return i18n.t('action.new.snippet')
279 if (action === 'new-note')
280 return i18n.t('action.new.note')
281 if (action === 'new-sheet')
282 return i18n.t('spaces.math.newSheet')
283 return ''
284}
285
286function createPrimaryActionClick(action: MainMenuPrimaryAction) {
287 if (action === 'new-snippet') {

Callers 1

createFileMenuItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected