"use strict";

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

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

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

var _propTypes = _interopRequireDefault(require("prop-types"));

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

var _styledComponents = require("styled-components");

var _theme = _interopRequireDefault(require("./theme"));

var CustomThemeProvider = function CustomThemeProvider(props) {
  return React.createElement(_styledComponents.ThemeProvider, {
    theme: props.theme
  }, props.children);
};

CustomThemeProvider.propTypes = process.env.NODE_ENV !== "production" ? {
  children: _propTypes.default.node,
  theme: _propTypes.default.object.isRequired
} : {};
CustomThemeProvider.defaultProps = {
  theme: _theme.default
};
var _default = CustomThemeProvider;
exports.default = _default;