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

};
const KEY = "categories"


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

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

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