MCPcopy Create free account
hub / github.com/deta/surf / createSpaceAction

Function createSpaceAction

app/src/main/contextMenu.ts:8–13  ·  view source on GitHub ↗
(space: SpaceBasicData, handler: () => void)

Source from the content-addressed store, hash-verified

6import { conditionalArrayItem } from '@deta/utils/data'
7
8const createSpaceAction = (space: SpaceBasicData, handler: () => void) => {
9 return {
10 label: space.name,
11 click: handler
12 } as Electron.MenuItemConstructorOptions
13}
14
15const createSpaceActions = (
16 pinnedSpaces: SpaceBasicData[],

Callers 2

createSpaceActionsFunction · 0.85
setupContextMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected