UNPKG

@wulperstudio/cms

Version:
29 lines 1.03 kB
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; var _excluded = ["background", "boxProps"], _excluded2 = ["open", "onClose", "sx", "children"]; import React from 'react'; import { Box, Modal } from '@mui/material'; import { jsx as _jsx } from "react/jsx-runtime"; export var DrawerModal = function DrawerModal(_ref) { var background = _ref.background, boxProps = _ref.boxProps, props = _objectWithoutProperties(_ref, _excluded); var open = props.open, onClose = props.onClose, sx = props.sx, children = props.children, rest = _objectWithoutProperties(props, _excluded2); return /*#__PURE__*/_jsx(Modal, _extends({ open: open, onClose: onClose, sx: _extends({}, sx, { background: background || 'rgb(53, 62, 108, 0.01)', backdropFilter: 'blur(2px)' }) }, rest, { children: /*#__PURE__*/_jsx(Box, _extends({}, boxProps, { children: children })) })); };