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

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

const KEY = "session";
const GetKey = ["session", "session"];

export const useGetAllSession = (params?: any, options?: any) =>
  useGetQuery(GetKey, API.GET, params, options);
export const useAddSession = () => useAddMutation(KEY, API.ADD);
export const useUpdateSession = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
export const useDeleteSession = (params?: any) =>
  useDeleteMutation(KEY, API.DELETE);
