import type { BadgeProps } from '@/components/ui/primitives/Badge';

/** Customer-facing tone map for transaction-case status badges. */
export function getCaseStatusTone(status: string): BadgeProps['tone'] {
  switch (status) {
    case 'vendor_offered':
    case 'awaiting_info':
      return 'warning';
    case 'resolved':
      return 'success';
    case 'closed':
      return 'neutral';
    case 'vendor_review':
    case 'ai_handling':
    case 'escalated':
    case 'human_review':
    case 'opened':
    case 'reopened':
      return 'info';
    default:
      return 'neutral';
  }
}
