"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 antd_1 = require("antd");
const footer_1 = __importDefault(require("components/landing/footer"));
const header_1 = __importDefault(require("components/landing/header"));
const content_1 = __importDefault(require("components/landing/content"));
const with_customize_1 = __importDefault(require("lib/with-customize"));
const customize_1 = require("lib/customize");
const head_1 = __importDefault(require("components/landing/head"));
const info_1 = __importDefault(require("components/landing/info"));
const A_1 = __importDefault(require("components/misc/A"));
const api_screenshot_png_1 = __importDefault(require("public/features/api-screenshot.png"));
const title = "API";
function API({ customize }) {
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, { value: customize, children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: title }), (0, jsx_runtime_1.jsxs)(antd_1.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, { page: "features", subPage: "api" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout.Content, { children: [(0, jsx_runtime_1.jsx)("div", { style: { backgroundColor: "#c7d9f5" }, children: (0, jsx_runtime_1.jsx)(content_1.default, { startup: "CoCalc", title: title, subtitle: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "Programmatically control CoCalc from your own server. Embed CoCalc within other products with a customized external look and feel." }), image: api_screenshot_png_1.default, alt: "Using the API" }) }), (0, jsx_runtime_1.jsx)(info_1.default.Heading, { description: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "The documentation explains what you can do with the CoCalc API." }), children: (0, jsx_runtime_1.jsx)(A_1.default, { href: "https://doc.cocalc.com/api/", children: "CoCalc API Documentation" }) })] }), (0, jsx_runtime_1.jsx)(footer_1.default, {})] })] }));
}
exports.default = API;
async function getServerSideProps(context) {
    return await (0, with_customize_1.default)({ context });
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=api.js.map