"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Sidebar = void 0;
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importStar(require("react"));
var v_eris_1 = require("v-eris");
var build_1 = require("../../components/Build/build");
require("./sidebar.scss");
var Sidebar = function (props) {
    var build = (0, react_1.useContext)(build_1.BuildContext);
    var _a = (0, react_1.useState)({}), state = _a[0], setState = _a[1];
    var settings = build.settings;
    var hidden = props.hidden === undefined ? !settings.getSecureValue("General::SideBar::SideBarExpand") : props.hidden;
    return (react_1.default.createElement("div", { className: v_eris_1.Props.className("eris-sidebar", { active: props.active && !props.hidden, hasSearch: props.hasSearch, hidden: hidden }) },
        react_1.default.createElement("div", { className: v_eris_1.Props.className("eris-sidebar-toggle", { static: props.hasSearch, active: props.active }), onClick: (props.onClick || (function () { })) }),
        react_1.default.createElement("div", { className: "eris-sidebar-content" }, props.children)));
};
exports.Sidebar = Sidebar;
//# sourceMappingURL=sidebar.js.map