import type { LeadStatus } from '@/types/lead'
import { t } from '@/lib/i18n'

/**
 * Lead status configuration
 * Labels use t() for translation
 */
export const LEAD_STATUS_CONFIG: Record<LeadStatus, {
  label: string
  color: string
  bgColor: string
}> = {
  new: {
    label: t('New'),
    color: 'text-blue-700',
    bgColor: 'bg-blue-100',
  },
  contacted: {
    label: t('Contacted'),
    color: 'text-yellow-700',
    bgColor: 'bg-yellow-100',
  },
  qualified: {
    label: t('Qualified'),
    color: 'text-purple-700',
    bgColor: 'bg-purple-100',
  },
  converted: {
    label: t('Converted'),
    color: 'text-green-700',
    bgColor: 'bg-green-100',
  },
  lost: {
    label: t('Lost'),
    color: 'text-gray-700',
    bgColor: 'bg-gray-100',
  },
}

/**
 * All lead statuses as array
 */
export const LEAD_STATUSES: LeadStatus[] = ['new', 'contacted', 'qualified', 'converted', 'lost']

/**
 * Chart colors
 */
export const CHART_COLORS = {
  primary: '#3BC2D0',
  accent: '#E32774',
  success: '#10B981',
  warning: '#F59E0B',
  danger: '#EF4444',
  gray: '#6B7280',
}

/**
 * API endpoints
 */
export const API_ENDPOINTS = {
  leads: 'leads',
  conversations: 'conversations',
  settings: 'settings',
  analytics: 'analytics',
  export: 'export',
  license: 'license',
}






