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

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

const KEY = "image";

export const useGetAllImages = (params?: any, options?: any) =>
  useGetQuery(KEY, API.GET, params, options);
export const useGetUrl = () => useAddMutation(KEY, API.ADD);
export const useUpdateImage = (params?: any) => useUpdateMutation(KEY, API.GET);
export const useDeleteImage = (params?: any) =>
  useDeleteMutation(KEY, API.DELETE);
