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

};
const KEY = "Restaurant"


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

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

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