"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const ahooks_1 = require("ahooks");
const requestWxApi_1 = tslib_1.__importDefault(require("../utils/requestWxApi"));
function useWxApi(wxApi, options) {
    return ahooks_1.useRequest((data) => requestWxApi_1.default(wxApi(data)), {
        ...options,
    });
}
exports.default = useWxApi;
