import useAddMutation from "./helper/useAddMutation";
import useDeleteMutation from "./helper/useDeleteMutation";
import useGetQuery from "./helper/useGetQuery";
import useUpdateMutation from "./helper/useUpdateMutation";

const API = {
  GET: "/reseller",
  ADD: "/reseller",
  DELETE: "/reseller",
  UPDATE: "/reseller",
};

const KEY = "ReSeller";

export const useGetAllReSeller = (params?: any, options?: any) =>
  useGetQuery(KEY, API.GET, params, options);
export const useAddReSeller = () => useAddMutation(KEY, API.ADD);
export const useUpdateReSeller = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
export const useDeleteReSeller = (params?: any) =>
  useDeleteMutation(KEY, API.DELETE);
