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, screenSize, theme } from '../../Tools/interpolation';
var Wrapper =
/*#__PURE__*/
styled.div.withConfig({
  componentId: "sc-2kuuaf-0"
})(["\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  align-items: flex-start;\n  width: 100%;\n  height: 100%;\n  background-color: ", ";\n\n  @media (min-width: ", ") {\n    width: ", ";\n    height: auto;\n    border-radius: 5px;\n  }\n"], theme('modalForegroundColor'), screenSize('sm'), prop('width'));

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

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

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