getConfidenceColor function presentation exported ✓ 100.0%
Last updated: 2026-03-04T23:21:38.424Z
Location
Metrics
LOC: 5
Complexity: 3
Params: 1
Coverage: 100.0% (3/3 lines, 0x executed)
Signature
getConfidenceColor(confidence: number): : string
Summary
Confidence thresholds and their associated colors
Source Code
export function getConfidenceColor(confidence: number): string {
if (confidence >= 0.8) return "#4ade80";
if (confidence >= 0.5) return "#fbbf24";
return "#f87171";
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| renderTypeBadge | uses |
| renderConfidenceBadge | calls |
| TypeBadgeProps | uses |