import { ISelectItem } from '@/shared/abstractClasses';

export const goldKarat = {
  KARAT_18: 'KARAT_18',
  KARAT_21: 'KARAT_21',
  KARAT_24: 'KARAT_24',
} as const;
export type TGoldKarat = (typeof goldKarat)[keyof typeof goldKarat];

const translates: Record<string, string> = {
  KARAT_18: 'عیار ۱۸',
  KARAT_21: 'عیار ۲۱',
  KARAT_24: 'عیار ۲۴',
};

export const goldKaratSelect: ISelectItem[] = Object.keys(goldKarat).map((key) => ({
  id: key,
  name: translates[key],
}));

export const goldKaratLabel = 'عیار';
