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

Function resolveFolderColorId

packages/app-core/src/components/FolderColors.tsx:38–44  ·  view source on GitHub ↗
(
  folder: NoteFolder,
  subpath: string,
  folderColors: Record<string, FolderColorId>
)

Source from the content-addressed store, hash-verified

36
37/** The chosen color for a folder, or null when none is set (default tint). */
38export function resolveFolderColorId(
39 folder: NoteFolder,
40 subpath: string,
41 folderColors: Record<string, FolderColorId>
42): FolderColorId | null {
43 return folderColors[folderIconKey(folder, subpath)] ?? null
44}
45
46/** The glyph text-color class for a folder, or null when no color is set. */
47export function resolveFolderColorGlyphClass(

Callers 1

Calls 1

folderIconKeyFunction · 0.90

Tested by

no test coverage detected