"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var React = _interopRequireWildcard(require("react"));

var _dom = require("../utils/dom");

var _ImagePreview = _interopRequireDefault(require("./ImagePreview"));

var show = function show(props) {
  var _renderImperatively = (0, _dom.renderImperatively)( /*#__PURE__*/React.createElement(_ImagePreview.default, props)),
      close = _renderImperatively.close;

  return {
    close: close
  };
};

var _default = show;
exports.default = _default;