function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
import React from "react";
import styled from "styled-components";
import backdropBlur from "./mixins/backdropBlur";
var Container = styled.div.withConfig({
  displayName: "backdropContainer__Container",
  componentId: "sc-8f2v2j-0"
})(["position:fixed;inset:0;z-index:", ";pointer-events:none;outline:none;"], function (_ref) {
  var zIndex = _ref.zIndex;
  return zIndex || "35";
});
var Backdrop = styled.div.withConfig({
  displayName: "backdropContainer__Backdrop",
  componentId: "sc-8f2v2j-1"
})(["position:absolute;inset:0;pointer-events:all;background-color:rgba(0,0,0,0.3);", ";}"], backdropBlur);
var BackdropContainer = function BackdropContainer(_ref2) {
  var children = _ref2.children,
    backdropContainerProps = _ref2.backdropContainerProps,
    backdropProps = _ref2.backdropProps,
    onClick = _ref2.onClick;
  return /*#__PURE__*/React.createElement(Container, _extends({
    "data-testid": "layer-backdropContainer"
  }, backdropContainerProps), /*#__PURE__*/React.createElement(Backdrop, _extends({
    "data-testid": "layer-backdrop"
  }, backdropProps, {
    onClick: onClick
  })), children);
};
export default BackdropContainer;