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 IconSingleMachineComponent(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-single_machine").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 32 32", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
        React.createElement("path", { opacity: ".4", fillRule: "evenodd", clipRule: "evenodd", d: "M25.7578 18.6665V23.3332C25.7578 24.4377 24.8623 25.3332 23.7578 25.3332H8.24214C7.13757 25.3332 6.24214 24.4377 6.24214 23.3332V18.6665H4.66662C3.56205 18.6665 2.66663 19.5619 2.66663 20.6665V27.3332C2.66663 28.4377 3.56206 29.3332 4.66663 29.3332H27.3333C28.4379 29.3332 29.3333 28.4377 29.3333 27.3332V20.6665C29.3333 19.5619 28.4379 18.6665 27.3333 18.6665H25.7578Z" }),
        React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M25.7578 10.1288V23.3337C25.7578 24.4382 24.8624 25.3337 23.7578 25.3337H8.24219C7.13762 25.3337 6.24219 24.4382 6.24219 23.3337V4.66699C6.24219 3.56242 7.13762 2.66699 8.24219 2.66699H18.4116C18.9495 2.66699 19.4646 2.88362 19.8409 3.26799L25.1871 8.72981C25.5529 9.10358 25.7578 9.60579 25.7578 10.1288ZM16.3516 11.2344C15.7993 11.2344 15.3516 11.6821 15.3516 12.2344V15.0344C15.3516 15.5867 15.7993 16.0344 16.3516 16.0344H23.9516C24.5038 16.0344 24.9516 15.5867 24.9516 15.0344V12.2344C24.9516 11.6821 24.5038 11.2344 23.9516 11.2344H16.3516Z" }));
}
var IconSingleMachine = React.forwardRef(IconSingleMachineComponent);
export default IconSingleMachine;
