"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");

var Wrapper =
/*#__PURE__*/
_styledComponents.default.div.withConfig({
  componentId: "sc-1cqdrwy-0"
})(["\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  height: ", ";\n  width: ", ";\n  min-width: ", ";\n  box-shadow: 0 0 1.5rem 0.4rem ", ";\n  background-color: ", ";\n"], (0, _interpolation.prop)('height'), (0, _interpolation.prop)('width'), (0, _interpolation.prop)('width'), (0, _interpolation.theme)('panelShadowColor'), (0, _interpolation.theme)('panelBackgroundColor'));

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

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