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

export type VaultCreateDTO = Omit<VaultDTO, 'id' | 'created_at' | 'updated_at'>;
export type VaultUpdateDTO = Partial<Omit<VaultDTO, 'id'>>;

export const useVaults = createEntityHook<VaultDTO, VaultCreateDTO, VaultUpdateDTO>(
  i18n.t('hooks.useVaults.text_1'),
  ENDPOINTS.INVENTORY.VAULTS,
);