import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_client__ from "@tachybase/client";
import * as __WEBPACK_EXTERNAL_MODULE_axios_mock_adapter__ from "axios-mock-adapter";
const apiClient = new __WEBPACK_EXTERNAL_MODULE__tachybase_client__.APIClient();
const mock = new __WEBPACK_EXTERNAL_MODULE_axios_mock_adapter__["default"](apiClient.axios);
mock.onGet('/users:get').reply(200, {
    data: {
        id: 1,
        name: 'John Smith'
    }
});
const providers = [
    [
        __WEBPACK_EXTERNAL_MODULE__tachybase_client__.APIClientProvider,
        {
            apiClient
        }
    ]
];
const demo2_rslib_entry_ = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_client__.compose)(...providers)(()=>{
    var _data_data;
    const { data } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_client__.useRequest)({
        url: 'users:get',
        method: 'get'
    });
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
        children: null == data ? void 0 : null === (_data_data = data.data) || void 0 === _data_data ? void 0 : _data_data.name
    });
});
export { demo2_rslib_entry_ as default };
