"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
/*
 *  This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
const icon_1 = require("@cocalc/frontend/components/icon");
const antd_1 = require("antd");
const router_1 = require("next/router");
const { Text } = antd_1.Typography;
function ConfigMenu({ main }) {
    const router = (0, router_1.useRouter)();
    function select(e) {
        router.push(`/store/${e.keyPath[0]}`, undefined, {
            scroll: false,
        });
    }
    const items = [
        { label: (0, jsx_runtime_1.jsx)(Text, { strong: true, children: "Store" }), key: "" },
        {
            label: "Quota Upgrade",
            key: "site-license",
            icon: (0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "key" }),
        },
        {
            label: "Booster",
            key: "boost",
            icon: (0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "rocket" }),
        },
        {
            label: "Dedicated VM or Disk",
            key: "dedicated",
            icon: (0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "dedicated" }),
        },
        { label: "Cart", key: "cart", icon: (0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "shopping-cart" }) },
        { label: "Checkout", key: "checkout", icon: (0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "list" }) },
        { label: "Congrats", key: "congrats", icon: (0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "check-circle" }) },
    ];
    return ((0, jsx_runtime_1.jsx)(antd_1.Menu, { mode: "horizontal", selectedKeys: [main], style: { height: "100%", marginBottom: "24px" }, onSelect: select, items: items }));
}
exports.default = ConfigMenu;
//# sourceMappingURL=menu.js.map