export const weightStatusTextMap: Record<string, string> = {
  ideal: 'Ideal',
  outside: 'Outside',
};

export const getWeightStatusText = (status: string): string => {
  return weightStatusTextMap[status] || status;
};

export const weightStatusBadgeColorMap: Record<
  string,
  'success' | 'error' | 'neutral' | 'info'
> = {
  ideal: 'success',
  outside: 'error',
};

export const getWeightStatusBadgeColor = (
  status: string
): 'success' | 'error' | 'neutral' | 'info' => {
  return weightStatusBadgeColorMap[status] || 'neutral';
};

export const statusTextMap: Record<string, string> = {
  APPROVED: 'Disetujui',
  Disetujui: 'Disetujui',
  REJECTED: 'Ditolak',
  Ditolak: 'Ditolak',
  CREATED: 'Pengajuan',
  Pengajuan: 'Pengajuan',
};

export const getStatusText = (status: string): string => {
  return statusTextMap[status] || status;
};

export const statusBadgeColorMap: Record<
  string,
  'success' | 'error' | 'neutral' | 'info'
> = {
  APPROVED: 'success',
  Disetujui: 'success',
  approved: 'success',
  disetujui: 'success',
  REJECTED: 'error',
  Ditolak: 'error',
  rejected: 'error',
  ditolak: 'error',
  CREATED: 'neutral',
  Pengajuan: 'neutral',
  created: 'neutral',
  pengajuan: 'neutral',
  PENDING: 'neutral',
  pending: 'neutral',
};

export const getStatusBadgeColor = (
  status: string
): 'success' | 'error' | 'neutral' | 'info' => {
  return statusBadgeColorMap[status] || 'neutral';
};
