'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _recompose = require('recompose');

var _StyleRoot = require('../BandwidthProvider/styles/StyleRoot');

var _StyleRoot2 = _interopRequireDefault(_StyleRoot);

var _theme = require('../../theme');

var _theme2 = _interopRequireDefault(_theme);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * @deprecated Please see [BandwidthProvider](/#!/BandwidthProvider)
 */
var BandwidthThemeProvider = function BandwidthThemeProvider(_ref) {
  var children = _ref.children,
      theme = _ref.theme;
  return _react2.default.createElement(
    _StyleRoot2.default,
    { customTheme: theme },
    children
  );
};

BandwidthThemeProvider.defaultProps = {
  theme: _theme2.default
};

BandwidthThemeProvider.CatapultThemeProvider = (0, _recompose.withProps)({
  theme: _theme.catapult
})(BandwidthThemeProvider);

exports.default = BandwidthThemeProvider;