"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 A_1 = __importDefault(require("components/misc/A"));
const site_name_1 = __importDefault(require("components/share/site-name"));
const layouts_1 = require("lib/styles/layouts");
const router_1 = require("next/router");
const react_1 = require("react");
function Overview() {
    const router = (0, router_1.useRouter)();
    // most likely, user will go to the cart next
    (0, react_1.useEffect)(() => {
        router.prefetch("/store/site-license");
    }, []);
    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, name: "shopping-cart" }), (0, jsx_runtime_1.jsxs)("h2", { style: { marginBottom: "30px" }, children: ["Welcome to the ", (0, jsx_runtime_1.jsx)(site_name_1.default, {}), " Store!"] }), (0, jsx_runtime_1.jsxs)("div", { style: { fontSize: "13pt" }, children: ["Shop below or explore an ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/pricing", children: "overview of products and pricing" }), "."] }), (0, jsx_runtime_1.jsxs)(layouts_1.OverviewRow, { children: [(0, jsx_runtime_1.jsx)(layouts_1.Product, { icon: "key", title: "Quota Upgrade License", href: "/store/site-license", children: "Upgrade your project, remove the warning banner, get internet access, more CPU and Memory, etc." }), (0, jsx_runtime_1.jsx)(layouts_1.Product, { icon: "rocket", title: "License Booster", href: "/store/boost", children: "Add additional upgrades to an existing license." }), (0, jsx_runtime_1.jsx)(layouts_1.Product, { href: "/store/dedicated?type=disk", icon: "save", title: "Dedicated Disk", children: "Add local storage to your project." }), (0, jsx_runtime_1.jsx)(layouts_1.Product, { href: "/store/dedicated?type=vm", icon: "dedicated", title: "Dedicated VM", children: "Move your project to a much more powerful VM." })] }), (0, jsx_runtime_1.jsxs)("div", { style: { marginTop: "4em" }, children: ["If you already selected one or more items, view your", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/store/cart", children: "shopping cart" }), " or go straight to", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/store/checkout", children: "checkout" }), "."] }), (0, jsx_runtime_1.jsxs)("p", { children: ["You can also browse your ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/billing", children: "billing records" }), " or", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/licenses", children: "licenses" }), "."] })] }));
}
exports.default = Overview;
//# sourceMappingURL=overview.js.map