"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 with_customize_1 = __importDefault(require("lib/with-customize"));
const customize_1 = require("lib/customize");
const index_list_1 = __importDefault(require("components/landing/index-list"));
const site_name_1 = __importDefault(require("components/share/site-name"));
const A_1 = __importDefault(require("components/misc/A"));
const antd_1 = require("antd");
const dataSource = [
    {
        link: "/info/doc",
        title: "Documentation",
        logo: "life-saver",
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Where to find", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com", children: "documentation about CoCalc" }), "."] })),
    },
    {
        link: "/info/status",
        title: "System Status",
        logo: "dashboard",
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["See how many people are", " ", (0, jsx_runtime_1.jsxs)(A_1.default, { href: "/info/status", children: ["using ", (0, jsx_runtime_1.jsx)(site_name_1.default, {}), " ", (0, jsx_runtime_1.jsx)("b", { children: "right now" })] }), ", and view data about what they are doing."] })),
    },
    {
        link: "/info/run",
        title: "Ways to Run CoCalc",
        logo: "server",
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["In addition to using CoCalc via the website cocalc.com, there are", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/info/run", children: "several other ways to run CoCalc" }), "."] })),
    },
];
function Info({ customize }) {
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, { value: customize, children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: "Info" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, { page: "info" }), (0, jsx_runtime_1.jsx)(index_list_1.default, { title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Information about ", (0, jsx_runtime_1.jsx)(site_name_1.default, {})] }), description: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "Information and links to resources for learning more." }), dataSource: dataSource }), (0, jsx_runtime_1.jsx)(footer_1.default, {})] })] }));
}
exports.default = Info;
async function getServerSideProps(context) {
    return await (0, with_customize_1.default)({ context });
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=index.js.map