import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
//  strict
import PropTypes from 'prop-types';
import * as React from 'react';
import styled from 'styled-components';
import { prop, theme } from '../../Tools/interpolation';
var Wrapper =
/*#__PURE__*/
styled.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"], prop('height'), prop('width'), prop('width'), theme('panelShadowColor'), theme('panelBackgroundColor'));

var Panel = function Panel(_ref) {
  var children = _ref.children,
      rest = _objectWithoutProperties(_ref, ["children"]);

  return React.createElement(Wrapper, rest, children);
};

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