import _defineProperty from '@babel/runtime/helpers/defineProperty';
import { QueryClientProvider } from '@tanstack/react-query';
import { q as queryClient } from './queryClient-Dsu-gu4Y.js';
import { jsx } from 'react/jsx-runtime';

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(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__*/jsx(QueryClientProvider, {
      client: queryClient,
      children: /*#__PURE__*/jsx(Component, _objectSpread({}, props))
    });
  };
  return QueryWrapper;
};

export { withReactQuery as w };
//# sourceMappingURL=withReactQuery-Dia59qcs.js.map
