"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");
/*
 *  This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
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)();
    return ((0, jsx_runtime_1.jsxs)(antd_1.Menu, __assign({ mode: "horizontal", selectedKeys: [main], style: { height: "100%" }, onSelect: function (e) {
            router.push("/billing/".concat(e.keyPath[0]), undefined, {
                scroll: false,
            });
        } }, { children: [(0, jsx_runtime_1.jsx)(antd_1.Menu.Item, { children: (0, jsx_runtime_1.jsx)("b", __assign({ style: { color: "#666" } }, { children: "Billing" })) }, ""), (0, jsx_runtime_1.jsxs)(antd_1.Menu.Item, { children: [(0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "credit-card", style: { marginRight: "5px" } }), " Credit Cards"] }, "cards"), (0, jsx_runtime_1.jsxs)(antd_1.Menu.Item, { children: [(0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "calendar", style: { marginRight: "5px" } }), " Subscriptions"] }, "subscriptions"), (0, jsx_runtime_1.jsxs)(antd_1.Menu.Item, { children: [(0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "list", style: { marginRight: "5px" } }), " Invoices and Receipts"] }, "receipts")] })));
}
exports.default = ConfigMenu;
//# sourceMappingURL=menu.js.map