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

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

const KEY = "cycle";

export const useGetAllCycle = (params?: any, options?: any) =>
  useGetQuery(KEY, API.GET, params, options);
export const useAddCycle = () => useAddMutation(KEY, API.ADD);
export const useUpdateCycle = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
export const useDeleteCycle = (params?: any) =>
  useDeleteMutation(KEY, API.DELETE);
