import PropTypes from 'prop-types';
import * as React from 'react';
import { ThemeProvider } from 'styled-components';
import defaultTheme from './theme';

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

CustomThemeProvider.propTypes = process.env.NODE_ENV !== "production" ? {
  children: PropTypes.node,
  theme: PropTypes.object.isRequired
} : {};
CustomThemeProvider.defaultProps = {
  theme: defaultTheme
};
export default CustomThemeProvider;