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 IconPromptGeneralComponent(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-prompt_general").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : '#000', viewBox: "0 0 16 16" }, rest, { ref: ref }),
        React.createElement("path", { d: "M13.764 1c.684 0 1.24.555 1.24 1.24v11.524a1.24 1.24 0 0 1-1.24 1.24H2.24A1.24 1.24 0 0 1 1 13.764V2.24C1 1.555 1.555 1 2.24 1h11.524ZM2.199 5.412l.001 8.352c0 .022.018.04.04.04h1.961V5.41L2.2 5.412ZM5.4 5.41v8.395h8.364a.04.04 0 0 0 .04-.04V5.4L5.4 5.41Zm5.312.81a.6.6 0 0 1 .754.078l.96.96.48.48a.599.599 0 1 1-.847.848l-.416-.416v3.036a.6.6 0 0 1-.601.6h-2.87l.413.414a.599.599 0 1 1-.848.847l-.48-.48-.96-.96a.6.6 0 0 1 0-.848l.96-.96.48-.48a.6.6 0 1 1 .848.848l-.419.42h2.276v-2.44l-.417.417a.599.599 0 1 1-.847-.848l.48-.48.96-.96.094-.077ZM2.24 2.2a.042.042 0 0 0-.04.041v1.972l2-.003V2.2H2.24ZM5.4 4.21l8.404-.008v-1.96a.04.04 0 0 0-.04-.042H5.4v2.01Z" }));
}
var IconPromptGeneral = React.forwardRef(IconPromptGeneralComponent);
export default IconPromptGeneral;
