MCPcopy Create free account
hub / github.com/47ng/nuqs / resolveRefColor

Function resolveRefColor

packages/docs/src/components/commit-graph.tsx:582–583  ·  view source on GitHub ↗
(rail: number, ref: string)

Source from the content-addressed store, hash-verified

580}: CommitGraphProps) {
581 const resolveColor = (rail: number) => railColors?.[rail] ?? color(rail)
582 const resolveRefColor = (rail: number, ref: string) =>
583 refColors?.[ref] ?? resolveColor(rail)
584 const resolveTagColor = (rail: number, tag: string) =>
585 tagColors?.[tag] ?? resolveColor(rail)
586

Callers 1

CommitGraphFunction · 0.85

Calls 1

resolveColorFunction · 0.85

Tested by

no test coverage detected