UNPKG

@wulperstudio/cms

Version:
28 lines 985 B
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, Object.assign({ open: open, onClose: onClose, sx: Object.assign({}, sx, { background: background || 'rgb(53, 62, 108, 0.01)', backdropFilter: 'blur(2px)' }) }, rest, { children: /*#__PURE__*/_jsx(Box, Object.assign({}, boxProps, { children: children })) })); };