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 IconRiskWarningComponent(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-risk-warning").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 48 48", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
        React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M41 18.441C41 8.821 33.402 1 24 1 14.598 1 7 8.821 7 18.441c0 4.174 2.369 8.529 6.955 13.124A7 7 0 0116 36.51v.46c0 1.66 1.33 3.03 3 3.03h10c1.67 0 3-1.37 3-3.03v-.46a7 7 0 012.045-4.945C38.631 26.969 41 22.615 41 18.44zM31 43a1 1 0 00-1-1H18a1 1 0 00-1 1v2a1 1 0 001 1h12a1 1 0 001-1v-2zM24 5c-7.166 0-13 6.005-13 13.441 0 2.93 1.878 6.382 5.786 10.298A11 11 0 0119.988 36h8.024a11 11 0 013.202-7.26C35.122 24.822 37 21.37 37 18.44 37 11.005 31.166 5 24 5zm1.267 4.454l-.107-.047a1 1 0 00-1.238.484l-4.086 8.02-.048.109a.997.997 0 00-.061.34l-.047.106a1 1 0 00.484 1.238l4.456 2.27-2.725 5.346-.047.107a1 1 0 00.484 1.238l1.782.908.107.047a1 1 0 001.238-.484l4.086-8.019.047-.107a1 1 0 00-.484-1.238l-1.782-.908-2.767-1.41 2.927-5.747.047-.107a1 1 0 00-.484-1.238l-1.782-.908z" }));
}
var IconRiskWarning = React.forwardRef(IconRiskWarningComponent);
export default IconRiskWarning;
