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

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

const KEY = "absence";

export const useGetAllAbsence = (params?: any, options?: any) =>
  useGetQuery(KEY, API.GET, params, options);
export const useAddAbsence = () => useAddMutation(KEY, API.ADD);
export const useUpdateAbsence = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
