react-native/website/layout/PageLayout.js

27 lines
584 B
JavaScript
Raw Normal View History

/**
* @providesModule PageLayout
* @jsx React.DOM
*/
var React = require('React');
var Site = require('Site');
var Marked = require('Marked');
var support = React.createClass({
render: function() {
var metadata = this.props.metadata;
var content = this.props.children;
return (
<Site section={metadata.section}>
<section className="content wrap documentationContent nosidebar">
<div className="inner-content">
<Marked>{content}</Marked>
</div>
</section>
</Site>
);
}
});
module.exports = support;