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

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

const KEY = "presence";

export const useGetAllPresence = (params?: any, options?: any) =>
  useGetQuery(KEY, API.GET, params, options);
export const useAddPresence = () => useAddMutation(KEY, API.ADD);
export const useUpdatePresence = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
