MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / storageName

Function storageName

ui/src/components/PageSidebarLayout.tsx:14–16  ·  view source on GitHub ↗
(storageKey: string)

Source from the content-addressed store, hash-verified

12}
13
14function storageName(storageKey: string): string {
15 return `openalice.page-sidebar-width.${storageKey}.v1`
16}
17
18function readStoredWidth(storageKey: string, fallback: number): number {
19 if (typeof window === 'undefined') return fallback

Callers 2

readStoredWidthFunction · 0.85
PageSidebarLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected