MCPcopy Create free account
hub / github.com/Noumena-Network/code / getContextColor

Function getContextColor

src/components/statusLine/starshipStatusLine.ts:61–65  ·  view source on GitHub ↗
(remaining: number)

Source from the content-addressed store, hash-verified

59}
60
61function getContextColor(remaining: number): string {
62 if (remaining <= 10) return 'error'
63 if (remaining <= 25) return 'warning'
64 return 'success'
65}
66
67function pushModule(
68 chunks: StarshipStatusLineChunk[],

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected