import React__default, { useRef } from 'react';
import { Modal as Modal$1 } from 'antd';

const Modal = ({
  className = '',
  style,
  ...props
}) => {
  const domRef = useRef(null);
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
    ref: domRef,
    style: {
      position: 'fixed',
      zIndex: 200,
      left: 0,
      top: 0
    }
  }), /*#__PURE__*/React__default.cloneElement(/*#__PURE__*/React__default.createElement(Modal$1, {
    style: {
      ...style,
      textAlign: 'left'
    }
  }), {
    className: `lm-modal-container ${className}`,
    getContainer: () => domRef.current,
    ...props
  }));
};
Modal.info = Modal$1.info;
Modal.success = Modal$1.success;
Modal.error = Modal$1.error;
Modal.warn = Modal$1.warn;
Modal.warning = Modal$1.warning;
Modal.confirm = Modal$1.confirm;

export { Modal as default };
//# sourceMappingURL=index.js.map
