summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/src/components/Page.js
blob: dda8eba185229fcb210ce6942affc6aa6e80796e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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.HTMLContent html={page.content} />
            </div>
        );
    }
});

module.exports = Page;