summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/src/Toolbar.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/Toolbar.js')
-rw-r--r--packages/gitbook-plugin-theme-default/src/Toolbar.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/Toolbar.js b/packages/gitbook-plugin-theme-default/src/Toolbar.js
new file mode 100644
index 0000000..b3fd059
--- /dev/null
+++ b/packages/gitbook-plugin-theme-default/src/Toolbar.js
@@ -0,0 +1,15 @@
+const React = require('react');
+const GitBook = require('gitbook-core');
+
+const Toolbar = React.createClass({
+ render() {
+ return (
+ <div className="Toolbar book-toolbar">
+ <GitBook.InjectedComponentSet matching={{ role: 'toolbar:buttons:left' }} />
+ <GitBook.InjectedComponentSet matching={{ role: 'toolbar:buttons:right' }} />
+ </div>
+ );
+ }
+});
+
+module.exports = Toolbar;