"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = require("react");
var _wauConfigProvider = require("../wau-config-provider");
var _jsxRuntime = require("react/jsx-runtime");
const ImgPreview = ({
  image
}) => {
  const {
    getPrefixCls
  } = (0, _react.useContext)(_wauConfigProvider.ConfigContext);
  const clsPrefix = (0, _react.useMemo)(getPrefixCls, [getPrefixCls]);
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
    className: `${clsPrefix}-mark-img-preview`,
    children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
      src: image,
      alt: "\u6C34\u5370\u56FE\u7247"
    })
  });
};
var _default = ImgPreview;
exports.default = _default;