Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80551 views
1
import React from 'react';
2
3
import Container from './Container';
4
import Markdown from './Markdown';
5
import { rhythm } from '../theme';
6
7
8
class Doc extends React.Component {
9
render() {
10
const { doc } = this.props;
11
12
if (!doc) return null;
13
14
return (
15
<article className="Doc" style={{
16
padding: `${rhythm(2)} 0`,
17
}}>
18
<Container>
19
<Markdown src={doc.get('content')} className="Doc-content" />
20
</Container>
21
</article>
22
);
23
}
24
}
25
26
export default Doc;
27
28