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

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

  const KEY = "TEAMMEMBER";
  export const useGetTeamMember = (params?:any) => useGetQuery(KEY, API.GET, params);
  export const useAddTeamMember = () => useAddMutation(KEY, API.ADD);
  export const useUpdateTeamMember = () => useUpdateMutation(KEY, API.UPDATE);
  export const useDeleteTeamMember = () =>useDeleteMutation(KEY, API.DELETE);
