import { createEntityHook } from './useEntityBase';
import { ENDPOINTS } from '@/constants/endpoints';
import type { KycApplicationDTO } from '@/types';
import i18n from "@/lib/i18n";

export type KycUpdateDTO = Partial<Pick<KycApplicationDTO, 'status' | 'rejection_reason'>>;

export const useKyc = createEntityHook<KycApplicationDTO, never, KycUpdateDTO>(
  i18n.t('hooks.useKyc.text_1'),
  ENDPOINTS.KYC.LIST,
);
