
import useGetQuery from "./helper/useGetQuery";
import useAddMutation from "./helper/useAddMutation"
import useDeleteMutation from "./helper/useDeleteMutation"
import useUpdateMutation from "./helper/useUpdateMutation";
  
const API = {
  ADD: `offer`,
  GET_ALL: `offer`,
  DELETE: `offer`,
  UPDATE: `offer`,

};
const KEY = "Offer"


export const useGetOffer = (params?:any,option?:any) => useGetQuery(KEY, API.GET_ALL,params);

export const useAddOffer = () => useAddMutation(KEY, API.ADD);
export const useUpdateOffer = (method?:any) => useUpdateMutation(KEY, API.UPDATE);

export const useDeleteOffer = () =>useDeleteMutation(KEY, API.DELETE);
