import { cn } from '@/lib/utils' interface ConfidenceIndicatorProps { tier: string score: number className?: string } const TIER_CONFIG = { guided: { color: 'bg-emerald-400', label: 'Proven path', description: 'FlowPilot is following a known resolution path with high confidence.', }, exploring: { color: 'bg-amber-400', label: 'Investigating', description: 'FlowPilot is narrowing down the issue based on your responses.', }, discovery: { color: 'bg-violet-400', label: 'New territory', description: 'FlowPilot is exploring this issue — your responses help build the knowledge base.', }, } as const export function ConfidenceIndicator({ tier, score, className }: ConfidenceIndicatorProps) { const config = TIER_CONFIG[tier as keyof typeof TIER_CONFIG] ?? TIER_CONFIG.discovery return (
{config.label} {/* Tooltip */}

{config.description}

Confidence: {Math.round(score * 100)}%

) }