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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
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;
};
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "react", "../context"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var react_1 = __importStar(require("react"));
    var context_1 = require("../context");
    function IconMenuDatabaseComponent(props, ref) {
        var prefixFromContext = (0, react_1.useContext)(context_1.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_1.default.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-menu-database").concat(loadingKls, " ").concat(className), width: width, height: height, xmlns: "http://www.w3.org/2000/svg", fill: useCurrentColor ? 'currentColor' : '#000', viewBox: "0 0 20 20" }, rest, { ref: ref }),
            react_1.default.createElement("path", { fillRule: "evenodd", d: "M5.0778 2C3.47742 2 2.18005 3.29736 2.18005 4.89774V15.1022C2.18005 16.7027 3.47742 18 5.0778 18H14.9125C16.513 18 17.8103 16.7027 17.8103 15.1022V4.89774C17.8103 3.29736 16.513 2 14.9125 2H5.0778ZM5.6925 6.92455C5.6925 6.48809 6.04632 6.13426 6.48279 6.13426H7.36089C7.79736 6.13426 8.15119 6.48809 8.15119 6.92455C8.15119 7.36102 7.79736 7.71485 7.36089 7.71485H6.48279C6.04632 7.71485 5.6925 7.36102 5.6925 6.92455ZM9.20481 6.92455C9.20481 6.48809 9.55864 6.13426 9.99511 6.13426H13.5075C13.944 6.13426 14.2978 6.48809 14.2978 6.92455C14.2978 7.36102 13.944 7.71485 13.5075 7.71485H9.99511C9.55864 7.71485 9.20481 7.36102 9.20481 6.92455ZM9.20481 9.99789C9.20481 9.56142 9.55864 9.20759 9.99511 9.20759H13.5075C13.944 9.20759 14.2978 9.56142 14.2978 9.99789C14.2978 10.4344 13.944 10.7882 13.5075 10.7882H9.99511C9.55864 10.7882 9.20481 10.4344 9.20481 9.99789ZM9.99511 12.2948C9.55864 12.2948 9.20481 12.6486 9.20481 13.0851C9.20481 13.5215 9.55864 13.8754 9.99511 13.8754H13.5075C13.944 13.8754 14.2978 13.5215 14.2978 13.0851C14.2978 12.6486 13.944 12.2948 13.5075 12.2948H9.99511ZM6.48279 9.20759C6.04632 9.20759 5.6925 9.56142 5.6925 9.99789C5.6925 10.4344 6.04632 10.7882 6.48279 10.7882H7.36089C7.79736 10.7882 8.15119 10.4344 8.15119 9.99789C8.15119 9.56142 7.79736 9.20759 7.36089 9.20759H6.48279ZM5.6925 13.0851C5.6925 12.6486 6.04632 12.2948 6.48279 12.2948H7.36089C7.79736 12.2948 8.15119 12.6486 8.15119 13.0851C8.15119 13.5215 7.79736 13.8754 7.36089 13.8754H6.48279C6.04632 13.8754 5.6925 13.5215 5.6925 13.0851Z", clipRule: "evenodd" }));
    }
    var IconMenuDatabase = react_1.default.forwardRef(IconMenuDatabaseComponent);
    exports.default = IconMenuDatabase;
});
