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

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

const KEY = "examLE";

export const useGetAllexamle = (params?: any) =>
  useGetQuery(KEY, API.GET, params);
export const useAddexamle = () => useAddMutation(KEY, API.ADD);
export const useUpdateexamle = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
export const useDeleteexamle = (params?: any) =>
  useDeleteMutation(KEY, API.DELETE);
