export const weightStatusColorMap: Record<string, string> = {
  ideal: 'bg-[#00D39033]',
  outside: 'bg-error/10',
};

export const weightStatusIndicatorColorMap: Record<string, string> = {
  ideal: 'bg-[#008000]',
  outside: 'bg-error',
};

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

export const getWeightStatusColor = (status: string): string => {
  return weightStatusColorMap[status] || 'bg-info';
};

export const getWeightStatusIndicatorColor = (status: string): string => {
  return weightStatusIndicatorColorMap[status] || 'bg-info';
};

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

export const statusColorMap: Record<string, string> = {
  APPROVED: 'bg-[#00D39033]',
  Disetujui: 'bg-[#00D39033]',
  REJECTED: 'bg-error/10',
  Ditolak: 'bg-error/10',
  CREATED: 'bg-[#f3f3f4]',
  Pengajuan: 'bg-[#f3f3f4]',
};

export const statusIndicatorColorMap: Record<string, string> = {
  APPROVED: 'bg-[#008000]',
  Disetujui: 'bg-[#008000]',
  REJECTED: 'bg-error',
  Ditolak: 'bg-error',
  CREATED: 'bg-[#D9D9D9]',
  Pengajuan: 'bg-[#D9D9D9]',
};

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

export const getStatusColor = (status: string): string => {
  return statusColorMap[status] || 'bg-info';
};

export const getStatusIndicatorColor = (status: string): string => {
  return statusIndicatorColorMap[status] || 'bg-info';
};

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