import { createEntityHook } from './useEntityBase'
import { ENDPOINTS } from '@/constants/endpoints'
import i18n from '@/lib/i18n'

export type GoldPurityDTO = {
  id: string
  karat: number
  purity_ratio: string
  name_ar: string
  name_en: string
  is_active: boolean
  is_system: boolean
  sort_order: number
}

export const usePurities = createEntityHook<GoldPurityDTO, never, never>(
  i18n.t('hooks.usePurities.text_1'),
  ENDPOINTS.PURITIES.LIST,
)
