blob: a7d8ef74e2c3e4a5071b637722c62eb4ecca8a51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
const React = require('react');
const GitBook = require('gitbook-core');
const Page = React.createClass({
propTypes: {
page: GitBook.Shapes.Page
},
render() {
const { page } = this.props;
return (
<div className="Page page-wrapper">
<GitBook.InjectedComponent matching={{ role: 'page:container' }} props={this.props}>
<GitBook.HTMLContent html={page.content} />
</GitBook.InjectedComponent>
</div>
);
}
});
module.exports = Page;
|