import VtxBaseModal from "../../vtx-base-modal";
import "./index.less";
import { jsx as _jsx } from "react/jsx-runtime";
var Content = function Content(_ref) {
  var src = _ref.src;
  return /*#__PURE__*/_jsx("div", {
    className: "vm-iframe-wrap",
    style: {
      height: 'calc(100vh - 70px)'
    },
    children: /*#__PURE__*/_jsx("iframe", {
      src: src,
      className: "vm-iframe"
    })
  });
};
var VmIframeModal = function VmIframeModal(_ref2) {
  var title = _ref2.title,
    visible = _ref2.visible,
    onCancel = _ref2.onCancel,
    theme = _ref2.theme,
    src = _ref2.src;
  return visible ? /*#__PURE__*/_jsx(VtxBaseModal, {
    width: "100vw",
    height: "100vh",
    top: 0,
    left: 0,
    title: title,
    visible: visible,
    theme: theme,
    onCancel: onCancel,
    tabs: [{
      key: 'info'
    }],
    contents: {
      info: /*#__PURE__*/_jsx(Content, {
        src: src
      })
    },
    modalHeight: "100vh"
  }) : null;
};
export default VmIframeModal;