import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import PropTypes from 'prop-types';
import * as React from 'react';
import styled from 'styled-components';
import { theme } from '../../Tools/interpolation';
var Wrapper =
/*#__PURE__*/
styled.div.withConfig({
  componentId: "dmnibh-0"
})(["\n  position: fixed;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  background-color: ", ";\n  transform: translateZ(0);\n  z-index: ", ";\n"], theme('modalBackgroundColor'), theme('modalZIndex'));

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

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

ModalBackground.propTypes = process.env.NODE_ENV !== "production" ? {
  children: PropTypes.node
} : {};
export default ModalBackground;