'use strict';

var _defineProperty = require('@babel/runtime/helpers/defineProperty');
var reactQuery = require('@tanstack/react-query');
var queryClient = require('./queryClient-4vAFE3bx.js');
var jsxRuntime = require('react/jsx-runtime');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var _defineProperty__default = /*#__PURE__*/_interopDefault(_defineProperty);

function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty__default.default(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
var withReactQuery = function withReactQuery(Component) {
  var QueryWrapper = function QueryWrapper(props) {
    return /*#__PURE__*/jsxRuntime.jsx(reactQuery.QueryClientProvider, {
      client: queryClient.queryClient,
      children: /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread({}, props))
    });
  };
  return QueryWrapper;
};

exports.withReactQuery = withReactQuery;
//# sourceMappingURL=withReactQuery-aLDu0h78.js.map
