MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / paneModeForPath

Function paneModeForPath

packages/app-core/src/lib/pane-mode.ts:8–13  ·  view source on GitHub ↗
(
  modesByPath: PaneModesByPath,
  path: string | null
)

Source from the content-addressed store, hash-verified

6export type PaneModesByPath = Record<string, PaneMode>
7
8export function paneModeForPath(
9 modesByPath: PaneModesByPath,
10 path: string | null
11): PaneMode {
12 return path ? modesByPath[path] ?? DEFAULT_PANE_MODE : DEFAULT_PANE_MODE
13}
14
15export function paneModesWithPathMode(
16 modesByPath: PaneModesByPath,

Callers 2

EditorPaneFunction · 0.90
pane-mode.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected