var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.withFirebase = exports.Provider = exports.Context = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var React = _interopRequireWildcard(require("react"));

const Context = React.createContext(null);
exports.Context = Context;
const Provider = Context.Provider;
exports.Provider = Provider;

const withFirebase = Component => props => /*#__PURE__*/React.createElement(Context.Consumer, null, ({
  firebase,
  shop
}) => /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({}, props, {
  firebase: firebase,
  shop: shop
})));

exports.withFirebase = withFirebase;
//# sourceMappingURL=firebase.js.map