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

};
const KEY = "Meal"


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

export const useAddMeal = () => useAddMutation(KEY, API.ADD);
export const useUpdateMeal = () => useUpdateMutation(KEY, API.UPDATE);

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