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 IconBasicDatabaseComponent(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-basic_database").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 22 22", fill: useCurrentColor ? 'currentColor' : '#000', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
            react_1.default.createElement("path", { d: "M9.51562 11.8252C9.87957 11.8252 10.1748 12.1204 10.1748 12.4844V15.5381C10.1746 17.5882 8.51296 19.2498 6.46289 19.25C4.41264 19.25 2.75019 17.5883 2.75 15.5381C2.75 13.4878 4.41252 11.8252 6.46289 11.8252H9.51562ZM15.5371 11.8252C17.5875 11.8252 19.25 13.4877 19.25 15.5381C19.2499 17.5884 17.5874 19.25 15.5371 19.25C13.4871 19.2498 11.8253 17.5882 11.8252 15.5381V12.4844C11.8252 12.1204 12.1204 11.8252 12.4844 11.8252H15.5371ZM6.46289 2.75C8.51308 2.75021 10.1748 4.41265 10.1748 6.46289V9.5166C10.1747 9.88043 9.87947 10.1758 9.51562 10.1758H6.46289C4.41255 10.1758 2.75005 8.51321 2.75 6.46289C2.75 4.41252 4.41253 2.75 6.46289 2.75ZM15.5371 2.75C17.5875 2.75 19.25 4.41252 19.25 6.46289C19.2498 8.51309 17.5874 10.1748 15.5371 10.1748H12.4844C12.1204 10.1748 11.8252 9.87957 11.8252 9.51562V6.46289C11.8252 4.41262 13.4869 2.75015 15.5371 2.75Z" }));
    }
    var IconBasicDatabase = react_1.default.forwardRef(IconBasicDatabaseComponent);
    exports.default = IconBasicDatabase;
});
