"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);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var 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
 */
var icon_1 = require("@cocalc/frontend/components/icon");
var antd_1 = require("antd");
var A_1 = __importDefault(require("components/misc/A"));
var layouts_1 = require("lib/styles/layouts");
var use_customize_1 = __importDefault(require("lib/use-customize"));
var Text = antd_1.Typography.Text;
function Overview() {
    var isCommercial = (0, use_customize_1.default)().isCommercial;
    return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: layouts_1.OVERVIEW_STYLE }, { children: [(0, jsx_runtime_1.jsx)(icon_1.Icon, { style: layouts_1.OVERVIEW_LARGE_ICON_MARGIN, name: "key" }), (0, jsx_runtime_1.jsx)("h2", __assign({ style: { marginBottom: "30px" } }, { children: "License management" })), (0, jsx_runtime_1.jsxs)(layouts_1.OverviewRow, { children: [(0, jsx_runtime_1.jsx)(layouts_1.Product, __assign({ icon: "key", title: "Manage licenses", href: "/licenses/managed" }, { children: "View and manage your licenses" })), (0, jsx_runtime_1.jsx)(layouts_1.Product, __assign({ icon: "edit", href: "/licenses/projects", title: "Licensed projects" }, { children: "Browse licensed projects you collaborate on" })), (0, jsx_runtime_1.jsx)(layouts_1.Product, __assign({ icon: "rocket", href: "/licenses/how-used", title: "How used" }, { children: "See how a specific site license is being used" })), isCommercial && ((0, jsx_runtime_1.jsxs)(layouts_1.Product, __assign({ icon: "ban", title: "Cancel subscription", href: "/billing/subscriptions" }, { children: ["Cancel an ongoing subscription", (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)(Text, __assign({ type: "secondary" }, { children: ["(in ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "/billing" }, { children: "Billing" })), ")"] }))] })))] }), isCommercial && ((0, jsx_runtime_1.jsxs)("p", { children: ["You can also ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "/store/site-license" }, { children: "buy a site license" })), ",", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "/billing/subscriptions" }, { children: "manage your purchased subscriptions" })), " ", "or browse ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "/billing/receipts" }, { children: "your receipts and invoices" })), "."] })), (0, jsx_runtime_1.jsxs)("p", { children: ["More general, you can also read", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://doc.cocalc.com/licenses.html" }, { children: "the license documentation" })), "."] })] })));
}
exports.default = Overview;
//# sourceMappingURL=overview.js.map