MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getBannerColorLevel

Function getBannerColorLevel

cli/src/utils/usage-banner-state.ts:61–63  ·  view source on GitHub ↗
(balance: number | null)

Source from the content-addressed store, hash-verified

59 * @deprecated Use getThresholdInfo(balance).colorLevel instead
60 */
61export function getBannerColorLevel(balance: number | null): BannerColorLevel {
62 return getThresholdInfo(balance).colorLevel
63}
64
65/**
66 * Generates loading text for the usage banner while data is being fetched.

Callers 2

UsageBannerFunction · 0.90

Calls 1

getThresholdInfoFunction · 0.85

Tested by

no test coverage detected