CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/pages/policies/policies.tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Col, Layout, Row } from "antd";
7
8
import Footer from "components/landing/footer";
9
import Head from "components/landing/head";
10
import Header from "components/landing/header";
11
import SanitizedMarkdown from "components/misc/sanitized-markdown";
12
import { Customize } from "lib/customize";
13
import withCustomize from "lib/with-customize";
14
15
export default function Policies({ customize }) {
16
const { policies } = customize;
17
return (
18
<Customize value={customize}>
19
<Head title="Policies" />
20
<Layout>
21
<Header page="policies" subPage="policies" />
22
<Row>
23
<Col
24
xs={{ span: 12, offset: 6 }}
25
style={{ marginTop: "30px", marginBottom: "30px" }}
26
>
27
{policies && <SanitizedMarkdown value={policies} />}
28
</Col>
29
</Row>
30
<Footer />
31
</Layout>
32
</Customize>
33
);
34
}
35
36
export async function getServerSideProps(context) {
37
return await withCustomize({ context });
38
}
39
40