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

};
const KEY = "setting"


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

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

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