
import useGetQueryPagination from "./helper/ueGetPagination";
import useAddMutation from "./helper/useAddMutation"
import useDeleteMutation from "./helper/useDeleteMutation"
import useGetQuery from "./helper/useGetQuery"
import useUpdateMutation from "./helper/useUpdateMutation"

const API = {
  GET: "/api/certificate",
  ADD: "/api/certificate",
  UPDATE: "/api/certificate",
  DELETE: "/api/certificate",
};

const KEY = "CERTIFICATE";
export const useGetCertificate = (params?: any) => useGetQueryPagination(KEY, API.GET, params);
export const useAddCertificate = () => useAddMutation(KEY, API.ADD);
export const useUpdateCertificate = () => useUpdateMutation(KEY, API.UPDATE);
export const useDeleteCertificate = () => useDeleteMutation(KEY, API.DELETE);
