export type ActiveStatusCode = 'active' | 'inactive'
export type DataStatusCode = 'new' | 'review' | 'process' | 'done' | 'canceled' | 'rejected' | 'skipped'
export type DataApprovalCode = 'new' | 'approved' | 'rejected'
export type DataAvailabilityCode = 'review' | 'available' | 'unavailble'
export type DataVerifiedCode = 'new' | 'verified' | 'rejected'
export type UserStatusCode = 'new' | 'active' | 'inactive' | 'blocked' | 'suspended'
export type ProcessStatusCode = 'success' | 'failed'
export type TimeUnitCode = 'sec' | 'min' | 'hour' | 'day' | 'week' | 'month' | 'year'
export type DayCode = '0' | '1' | '2' | '3' | '4' | '5' | '6'
export type PaymentMethodCode = 'cash' | 'debit' | 'credit' | 'insurance' | 'membership'

export const activeStatusCodes: Record<ActiveStatusCode, string> = {
  active: 'Aktif',
  inactive: 'Tidak Aktif',
}

export const dataStatusCodes: Record<DataStatusCode, string> = {
  new: 'Baru',
  review: 'Review',
  process: 'Proses',
  done: 'Selesai',
  canceled: 'Dibatalkan',
  rejected: 'Ditolak',
  skipped: 'Dilewati',
}

export const dataApprovalCodes: Record<DataApprovalCode, string> = {
  new: 'Baru',
  approved: 'Diterima',
  rejected: 'Ditolak',
}

export const dataAvailabilityCodes: Record<DataAvailabilityCode, string> = {
  review: 'Konfirmasi',
  available: 'Tersedia',
  unavailble: 'Tidak Tersedia',
}

export const dataVerifiedCodes: Record<DataVerifiedCode, string> = {
  new: 'Baru',
  verified: 'Terverifikasi',
  rejected: 'Ditolak',
}

export const userStatusCodes: Record<UserStatusCode, string> = {
  new: 'Baru',
  active: 'Aktif',
  inactive: 'Tidak Aktif',
  blocked: 'Diblokir',
  suspended: 'Dibekukan',
}

export const processStatusCodes: Record<ProcessStatusCode, string> = {
  success: 'Sukses',
  failed: 'Gagal',
}

export const timeUnitCodes: Record<TimeUnitCode, string> = {
  sec: 'Detik',
  min: 'Menit',
  hour: 'Jam',
  day: 'Hari',
  week: 'Minggu',
  month: 'Bulan',
  year: 'Tahun',
}

export const dayCodes: Record<DayCode, string> = {
  '0': 'Minggu',
  '1': '',
  '2': '',
  '3': '',
  '4': '',
  '5': '',
  '6': 'Sabtu',
}

export const paymentMethodCodes: Record<PaymentMethodCode, string> = {
  cash: 'Cash',
  debit: 'Debit',
  credit: 'Kredit',
  insurance: 'Asuransi',
  membership: 'Membership',
}
