"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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

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

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

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

var _interpolation = require("../../Tools/interpolation");

//  strict
var Wrapper =
/*#__PURE__*/
_styledComponents.default.div.withConfig({
  componentId: "p5q4id-0"
})(["\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  width: 100%;\n  height: ", ";\n  margin: 0 auto;\n\n  @media (min-width: ", ") {\n    width: 75rem;\n  }\n"], (0, _interpolation.prop)('height'), (0, _interpolation.screenSize)('lg'));

var Container = function Container(_ref) {
  var children = _ref.children,
      rest = (0, _objectWithoutProperties2.default)(_ref, ["children"]);
  return React.createElement(Wrapper, rest, children);
};

Container.propTypes = process.env.NODE_ENV !== "production" ? {
  children: _propTypes.default.node,
  height: _propTypes.default.string
} : {};
Container.defaultProps = {
  height: 'auto'
};
var _default = Container;
exports.default = _default;