blob: c5f74ab9b03aaa7167bf234ef947da8a4d1a4aea (
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:input' }} />
<Summary summary={summary} />
</div>
);
}
});
module.exports = Sidebar;
|