blob: ad1754ec4bbf84be09af35bb4ef568339f22a818 (
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.PropTypes.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;
|