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

Function pick

packages/app-core/src/store.ts:332–333  ·  view source on GitHub ↗
(key: RightPanelId)

Source from the content-addressed store, hash-verified

330function normalizePanelWidths(value: unknown): PanelWidths {
331 const v = (value ?? {}) as Partial<Record<RightPanelId, unknown>>
332 const pick = (key: RightPanelId): number =>
333 typeof v[key] === 'number' ? clampPanelWidth(v[key] as number) : DEFAULT_PANEL_WIDTHS[key]
334 return {
335 outline: pick('outline'),
336 connections: pick('connections'),

Callers 1

normalizePanelWidthsFunction · 0.85

Calls 1

clampPanelWidthFunction · 0.85

Tested by

no test coverage detected