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

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

const KEY = "attendence";

export const useGetAllAttendence = (params?: any, options?: any) =>
  useGetQuery(KEY, API.GET, params, options);
export const useAddAttendence = () => useAddMutation(KEY, API.ADD);
export const useUpdateAttendence = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
