"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SignInToPurchase = void 0;
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 antd_1 = require("antd");
const store_inplace_signup_1 = require("./store-inplace-signup");
const SignInToPurchase = (props) => {
    const { noAccount = false } = props;
    if (!noAccount)
        return null;
    function body() {
        return ((0, jsx_runtime_1.jsx)("div", { children: "Feel free to explore pricing, but you have to be signed in with a regular account in order to be able to purchase a license." }));
    }
    return ((0, jsx_runtime_1.jsx)(antd_1.Alert, { closable: true, showIcon: true, type: "warning", message: body(), description: (0, jsx_runtime_1.jsx)(store_inplace_signup_1.StoreInplaceSignInOrUp, {}), style: { marginBottom: "20px" } }));
};
exports.SignInToPurchase = SignInToPurchase;
//# sourceMappingURL=sign-in-to-purchase.js.map