var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React, { useContext } from 'react';
import { Context } from '../context';
function IconImageComponent(props, ref) {
    var prefixFromContext = useContext(Context).prefix;
    var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? true : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
    var prefix = prefixFromProps || prefixFromContext || 'hiagent';
    var loadingKls = spin ? " ".concat(prefix, "-icon-loading") : '';
    return React.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-Image").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 18 18", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
        React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.33325 2.33325C3.22869 2.33325 2.33325 3.22869 2.33325 4.33325V13.6666C2.33325 14.7712 3.22869 15.6666 4.33325 15.6666H13.6666C14.7712 15.6666 15.6666 14.7712 15.6666 13.6666V4.33325C15.6666 3.22869 14.7712 2.33325 13.6666 2.33325H4.33325ZM7.66658 5.99992C7.66658 6.92039 6.92039 7.66658 5.99992 7.66658C5.07945 7.66658 4.33325 6.92039 4.33325 5.99992C4.33325 5.07945 5.07945 4.33325 5.99992 4.33325C6.92039 4.33325 7.66658 5.07945 7.66658 5.99992ZM12.138 8.80465C11.8777 8.54432 11.4555 8.54432 11.1952 8.80465L8.33325 11.6666L7.47133 10.8047C7.21097 10.5443 6.78886 10.5443 6.52851 10.8047L4.33325 12.9999V13.6666H6.33325H8.99992H13.6666V10.3333L12.138 8.80465Z" }));
}
var IconImage = React.forwardRef(IconImageComponent);
export default IconImage;
