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

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

const KEY = "PackageItem";

export const useGetAllPackageItem = (params?: any, options?: any) =>
  useGetQuery(KEY, API.GET, params, options);
export const useAddPackageItem = () => useAddMutation(KEY, API.ADD);
export const useUpdatePackageItem = (params?: any) => useUpdateMutation(KEY, API.GET);
export const useDeletePackageItem = (params?: any) =>
  useDeleteMutation(KEY, API.DELETE);
