import { useMutation } from '@tanstack/react-query';
import { apiMutate } from './useAxiosMutate';
export function useApiMutation(baseURL, url, config = {}, options) {
    return useMutation(Object.assign({ mutationFn: async (variables) => {
            const response = await apiMutate(baseURL, url, config, variables);
            return response.data;
        } }, options));
}
//# sourceMappingURL=useApiMutation.js.map