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 IconDrawerFoldComponent(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-drawer-fold").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: "M6 8.97656C6 8.42428 6.44772 7.97656 7 7.97656H41C41.5523 7.97656 42 8.42428 42 8.97656V10.9766C42 11.5288 41.5523 11.9766 41 11.9766H7C6.44772 11.9766 6 11.5288 6 10.9766V8.97656zM6 36.9688C6 36.4165 6.44772 35.9688 7 35.9688H41C41.5523 35.9688 42 36.4165 42 36.9688V38.9688C42 39.521 41.5523 39.9688 41 39.9688H7C6.44772 39.9688 6 39.521 6 38.9688V36.9688zM10.7027 17.4296C11.0932 17.0391 11.7264 17.0391 12.1169 17.4296L13.5312 18.8438C13.9217 19.2343 13.9217 19.8675 13.5312 20.258L11.8167 21.9725H41C41.5523 21.9725 42 22.4202 42 22.9725V24.9725C42 25.5248 41.5523 25.9725 41 25.9725H11.8226L13.5312 27.6811C13.9217 28.0716 13.9217 28.7048 13.5312 29.0953L12.1169 30.5095C11.7264 30.9 11.0933 30.9 10.7027 30.5095L4.87 24.6767C4.47948 24.2861 4.47948 23.653 4.87 23.2625L10.7027 17.4296z" }));
}
var IconDrawerFold = React.forwardRef(IconDrawerFoldComponent);
export default IconDrawerFold;
