import l from "../../../../@babel/runtime/helpers/esm/extends.mjs";
import c from "../../../../classnames/index.mjs";
import f from "../../../../rc-motion/es/CSSMotion.mjs";
import "../../../../rc-motion/es/CSSMotionList.mjs";
import * as t from "react";
function k(e) {
  var a = e.prefixCls, m = e.open, n = e.zIndex, r = e.mask, o = e.motion;
  return r ? /* @__PURE__ */ t.createElement(f, l({}, o, {
    motionAppear: !0,
    visible: m,
    removeOnLeave: !0
  }), function(i) {
    var s = i.className;
    return /* @__PURE__ */ t.createElement("div", {
      style: {
        zIndex: n
      },
      className: c("".concat(a, "-mask"), s)
    });
  }) : null;
}
export {
  k as default
};
