'use strict';

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

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

var _propTypes2 = _interopRequireDefault(_propTypes);

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

var _Colors = require('../Colors');

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

var Themes = function Themes(props) {
  var theme = props.theme,
      children = props.children;

  var colors = (0, _Colors.Palette)(theme);

  return _react2.default.createElement(
    _styledComponents.ThemeProvider,
    { theme: colors },
    children
  );
};

Themes.propTypes = {
  theme: _propTypes2.default.string
};

Themes.defaultProps = {
  theme: 'default'
};
exports.Themes = Themes;