"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getServerSideProps = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const footer_1 = __importDefault(require("components/landing/footer"));
const header_1 = __importDefault(require("components/landing/header"));
const head_1 = __importDefault(require("components/landing/head"));
const antd_1 = require("antd");
const with_customize_1 = __importDefault(require("lib/with-customize"));
const customize_1 = require("lib/customize");
const A_1 = __importDefault(require("components/misc/A"));
const icon_1 = require("@cocalc/frontend/components/icon");
const index_list_1 = __importDefault(require("components/landing/index-list"));
const config_1 = require("lib/config");
const dataSource = [
    {
        landingPages: true,
        link: "https://github.com/sagemathinc/cocalc-desktop#readme",
        title: "Install the CoCalc Desktop Application",
        logo: "laptop",
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["If you're having browser compatibility issues with CoCalc, you can try installing the", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://github.com/sagemathinc/cocalc-desktop#readme", children: "CoCalc desktop application for Windows and MacOS" }), ". This is a lightweight application that connects to the main cocalc.com site, but is completely separate from your web browser."] })),
    },
    {
        landingPages: true,
        link: "/pricing/onprem",
        title: "Install CoCalc on Your Own Server or Cluster",
        logo: "server",
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["You can", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/pricing/onprem", children: "fully run your own commercially supported instance of CoCalc" }), " ", "on anything from your laptop to a large Kubernetes cluster."] })),
    },
];
function Help({ customize }) {
    let data = dataSource;
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, { value: customize, children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: "Run CoCalc" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, { page: "info", subPage: "run" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout.Content, { style: {
                            backgroundColor: "white",
                        }, children: [(0, jsx_runtime_1.jsx)("div", { style: {
                                    maxWidth: config_1.MAX_WIDTH,
                                    margin: "15px auto",
                                    padding: "15px",
                                    backgroundColor: "white",
                                }, children: (0, jsx_runtime_1.jsx)(index_list_1.default, { title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(icon_1.Icon, { name: "laptop", style: { marginRight: "30px" } }), "Other Ways to Run CoCalc"] }), description: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "In addition to using CoCalc via the website cocalc.com, there are several other ways to run CoCalc." }), dataSource: data }) }), (0, jsx_runtime_1.jsx)(footer_1.default, {})] })] })] }));
}
exports.default = Help;
async function getServerSideProps(context) {
    return await (0, with_customize_1.default)({ context });
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=run.js.map