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

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

const KEY = "mark";

export const useGetAllMark = (params?: any, options?: any) =>
  useGetQuery(KEY, API.GET, params, options);
export const useAddMark = () => useAddMutation(KEY, API.ADD);
export const useUpdateMark = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
export const useDeleteMark = (params?: any) =>
  useDeleteMutation(KEY, API.DELETE);
