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

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

const KEY = "StudentPackage";

export const useGetAllStudentPackage = (params?: any, options?: any) =>
  useGetQuery(KEY, API.GET, params, options);
export const useAddStudentPackage = () => useAddMutation(KEY, API.ADD);
export const useUpdateStudentPackage = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
export const useDeleteStudentPackage = (params?: any) =>
  useDeleteMutation(KEY, API.DELETE);
