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

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

const KEY = "sessionContent";

export const useGetAllSessionContent = (params?: any) =>
  useGetQuery(KEY, API.GET, params);
export const useAddSessionContent = () => useAddMutation(KEY, API.ADD);
export const useUpdateSessionContent = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
export const useDeleteSessionContent = (params?: any) =>
  useDeleteMutation(KEY, API.DELETE);
