27 lines
584 B
JavaScript
27 lines
584 B
JavaScript
/**
|
|
* @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;
|