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

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

const KEY = "lateArrival";

export const useGetAllLateArrival = (params?: any, options?: any) =>
  useGetQuery(KEY, API.GET, params, options);
export const useAddLateArrival = () => useAddMutation(KEY, API.ADD);
export const useUpdateLateArrival = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
