"use strict";

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

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

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

var _core = require("@emotion/core");

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

var _normalize = require("../../styles/normalize");

var _fonts = _interopRequireDefault(require("../../styles/fonts"));

var _emotionTheming = require("emotion-theming");

var _default2 = _interopRequireDefault(require("../../themes/default"));

var Root = function Root(props) {
  return (0, _core.jsx)(_emotionTheming.ThemeProvider, {
    theme: props.theme
  }, (0, _core.jsx)(_core.Global, {
    styles: _normalize.normalize
  }), (0, _core.jsx)(_core.Global, {
    styles: _fonts["default"]
  }), props.children);
};

exports.Root = Root;
Root.defaultProps = {
  theme: _default2["default"]
};
var _default = Root;
exports["default"] = _default;