other = _objectWithoutProperties(props, ["anchor", "BackdropProps", "children", "className", "elevation", "hideBackdrop", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"]); // Let's assume that the Drawer will always be rendered on user space.
// We use this state is order to skip the appear transition during the
// initial mount of the component.
var mounted = React.useRef(false);
React.useEffect(function () {
mounted.current = true;
}, []);
var anchorInvariant = getAnchor(theme, anchorProp);
var anchor = anchorProp;
var ownerState = _extends({}, props, {
anchor: anchor,
elevation: elevation,
open: open,
variant: variant
}, other);
var classes = useUtilityClasses(ownerState);
var drawer = /*#__PURE__*/_jsx(DrawerPaper, _extends({