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

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

const KEY = "semantics";

export const useGetAllSemantics = (params?: any, options?: any) =>
  useGetQuery(KEY, API.GET, params, options);
export const useAddSemantics = () => useAddMutation(KEY, API.ADD);
export const useUpdateSemantics = (params?: any) =>
  useUpdateMutation(KEY, API.GET);
export const useDeleteSemantics = (params?: any) =>
  useDeleteMutation(KEY, API.DELETE);
