summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-sharing/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-plugin-sharing/src/index.js')
-rw-r--r--packages/gitbook-plugin-sharing/src/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-sharing/src/index.js b/packages/gitbook-plugin-sharing/src/index.js
new file mode 100644
index 0000000..e33a470
--- /dev/null
+++ b/packages/gitbook-plugin-sharing/src/index.js
@@ -0,0 +1,6 @@
+const GitBook = require('gitbook-core');
+const ShareButton = require('./Button');
+
+module.exports = GitBook.createPlugin((dispatch, state) => {
+ dispatch(GitBook.registerComponent(ShareButton, { role: 'Toolbar:ActionButton' }));
+});