"use strict";
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);
};
Object.defineProperty(exports, "__esModule", { value: true });
var jsx_runtime_1 = require("react/jsx-runtime");
var antd_1 = require("antd");
var icon_1 = require("@cocalc/frontend/components/icon");
var router_1 = require("next/router");
function ConfigMenu(_a) {
    var main = _a.main;
    var router = (0, router_1.useRouter)();
    var items = [
        { label: (0, jsx_runtime_1.jsx)("b", __assign({ style: { color: "#666" } }, { children: "Licenses" })), key: "" },
        { label: "Manage", key: "managed", icon: (0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "key" }) },
        { label: "Projects", key: "projects", icon: (0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "edit" }) },
        { label: "How Used", key: "how-used", icon: (0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "key" }) },
    ];
    return ((0, jsx_runtime_1.jsx)(antd_1.Menu, { mode: "horizontal", selectedKeys: [main], style: { height: "100%" }, onSelect: function (e) {
            router.push("/licenses/".concat(e.keyPath[0]), undefined, {
                scroll: false,
            });
        }, items: items }));
}
exports.default = ConfigMenu;
//# sourceMappingURL=menu.js.map