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

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

const KEY = "question";

export const useGetAllQuestion = (params?: any) =>
  useGetQuery(KEY, API.GET, params);
export const useAddQuestion = () => useAddMutation(KEY, API.ADD,false);
export const useUpdateQuestion = (params?: any) =>
  useUpdateMutation(KEY, API.GET,false);
export const useDeleteQuestion = (params?: any) =>
  useDeleteMutation(KEY, API.DELETE);
