blob: 4a7fa53d3d98bd8d4c2412013b37648ed7652ea3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
const GitBook = require('gitbook-core');
const { React } = GitBook;
const Summary = require('./Summary');
const Sidebar = React.createClass({
propTypes: {
summary: GitBook.Shapes.Summary
},
render() {
const { summary } = this.props;
return (
<div className="Sidebar book-summary">
<GitBook.InjectedComponent matching={{ role: 'search:container:input' }} />
<Summary summary={summary} />
</div>
);
}
});
module.exports = Sidebar;
|