export function getPositionBadgeColor(posType?: string) {
  switch (posType) {
    case 'professor':
      return 'bg-purple-100 text-purple-800'
    case 'postdoc':
      return 'bg-blue-100 text-blue-800'
    case 'researcher':
      return 'bg-green-100 text-green-800'
    case 'phd_student':
      return 'bg-yellow-100 text-yellow-800'
    default:
      return 'bg-gray-100 text-gray-800'
  }
}

export function getStateBadgeColor(state?: string) {
  const colors: Record<string, string> = {
    BW: 'bg-yellow-100 text-yellow-800',
    BY: 'bg-blue-100 text-blue-800',
    BE: 'bg-red-100 text-red-800',
    NW: 'bg-green-100 text-green-800',
    HE: 'bg-orange-100 text-orange-800',
    SN: 'bg-purple-100 text-purple-800',
  }
  return colors[state || ''] || 'bg-gray-100 text-gray-800'
}
