"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
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 A_1 = __importDefault(require("components/misc/A"));
const layouts_1 = require("lib/styles/layouts");
const use_customize_1 = __importDefault(require("lib/use-customize"));
const { Text } = antd_1.Typography;
function Overview() {
    const { isCommercial } = (0, use_customize_1.default)();
    return ((0, jsx_runtime_1.jsxs)("div", { 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", { style: { marginBottom: "30px" }, children: "License management" }), (0, jsx_runtime_1.jsxs)(layouts_1.OverviewRow, { children: [(0, jsx_runtime_1.jsx)(layouts_1.Product, { icon: "key", title: "Manage licenses", href: "/licenses/managed", children: "View and manage your licenses" }), (0, jsx_runtime_1.jsx)(layouts_1.Product, { icon: "edit", href: "/licenses/projects", title: "Licensed projects", children: "Browse licensed projects you collaborate on" }), (0, jsx_runtime_1.jsx)(layouts_1.Product, { 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, { 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, { type: "secondary", children: ["(in ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/billing", children: "Billing" }), ")"] })] }))] }), isCommercial && ((0, jsx_runtime_1.jsxs)("p", { children: ["You can also ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/store/site-license", children: "buy a site license" }), ",", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/billing/subscriptions", children: "manage your purchased subscriptions" }), " ", "or browse ", (0, jsx_runtime_1.jsx)(A_1.default, { 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, { href: "https://doc.cocalc.com/licenses.html", children: "the license documentation" }), "."] })] }));
}
exports.default = Overview;
//# sourceMappingURL=overview.js.map