"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _vtxBaseModal = _interopRequireDefault(require("../vtx-base-modal"));
require("./style");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var Content = function Content(_ref) {
  var src = _ref.src;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "vm-iframe-wrap",
    style: {
      height: 'calc(100vh - 70px)'
    }
  }, /*#__PURE__*/_react["default"].createElement("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__*/_react["default"].createElement(_vtxBaseModal["default"], {
    width: "100vw",
    height: "100vh",
    top: 0,
    left: 0,
    title: title,
    visible: visible,
    theme: theme,
    onCancel: onCancel,
    tabs: [{
      key: 'info'
    }],
    contents: {
      info: /*#__PURE__*/_react["default"].createElement(Content, {
        src: src
      })
    },
    modalHeight: "100vh"
  })) : null;
};
var _default = exports["default"] = VmIframeModal;
//# sourceMappingURL=index.js.map
