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 IconLastStepComponent(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-last-step").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : '#000', viewBox: "0 0 24 24" }, rest, { ref: ref }),
        React.createElement("path", { fillRule: "evenodd", d: "M7.517 3.643a.448.448 0 0 0-.125.089L3.263 7.86a.9.9 0 0 0 0 1.27l4.13 4.13-4.13-4.13a.898.898 0 0 1 0-1.27l4.13-4.13a.448.448 0 0 1 .124-.088Zm-1.45 5.751H14.5c1.303 0 3.178 1.001 4.035 2.646-.857-1.645-2.732-2.646-4.035-2.646H6.068Zm12.363 6.532c-.898 1.537-2.678 2.47-3.93 2.47 1.252 0 3.032-.933 3.93-2.47Zm-7.7 2.474a.45.45 0 0 0-.389.446v.88-.88a.45.45 0 0 1 .39-.446ZM6.938 9.754l1.98 1.982a.81.81 0 0 1 0 1.144l-.635.635a.81.81 0 0 1-1.144 0l-4.13-4.13a1.258 1.258 0 0 1 0-1.779l4.13-4.129a.81.81 0 0 1 1.144 0l.635.635a.81.81 0 0 1 0 1.145l-1.98 1.98h7.774a6.649 6.649 0 0 1 0 13.298h-3.92a.81.81 0 0 1-.81-.809v-.88a.81.81 0 0 1 .81-.81h3.71c.762 0 1.804-.404 2.66-1.149.85-.739 1.471-1.774 1.471-3 0-1.227-.622-2.257-1.47-2.992-.856-.74-1.898-1.14-2.662-1.14H6.937Z", clipRule: "evenodd" }));
}
var IconLastStep = React.forwardRef(IconLastStepComponent);
export default IconLastStep;
