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

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

const KEY = "summary";

export const useGetAllsummary = (params?: any, options?: any) =>
  useGetQuery(KEY, API.GET, params, options);
export const useAddsummary = () => useAddMutation(KEY, API.ADD);
export const useUpdatesummary = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
export const useDeletesummary = (params?: any) =>
  useDeleteMutation(KEY, API.DELETE);
