"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");
/*
 *  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 with_customize_1 = __importDefault(require("lib/with-customize"));
const header_1 = __importDefault(require("components/landing/header"));
const head_1 = __importDefault(require("components/landing/head"));
const footer_1 = __importDefault(require("components/landing/footer"));
const sanitized_markdown_1 = __importDefault(require("components/misc/sanitized-markdown"));
const customize_1 = require("lib/customize");
const antd_2 = require("antd");
function Imprint({ customize }) {
    const { imprint } = customize;
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, { value: customize, children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: "Policies" }), (0, jsx_runtime_1.jsxs)(antd_2.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, { page: "policies", subPage: "imprint" }), (0, jsx_runtime_1.jsx)(antd_1.Row, { children: (0, jsx_runtime_1.jsx)(antd_1.Col, { xs: { span: 12, offset: 6 }, style: { marginTop: "30px", marginBottom: "30px" }, children: imprint && (0, jsx_runtime_1.jsx)(sanitized_markdown_1.default, { value: imprint }) }) }), (0, jsx_runtime_1.jsx)(footer_1.default, {}), " "] })] }));
}
exports.default = Imprint;
async function getServerSideProps(context) {
    return await (0, with_customize_1.default)({ context });
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=imprint.js.map