summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-sharing/src/index.js
blob: 174adfc51ec0f5327201804cc927c7f4631b026b (plain)
1
2
3
4
5
6
7
8
9
const GitBook = require('gitbook-core');
const SharingButtons = require('./components/SharingButtons');

module.exports = GitBook.createPlugin({
    activate: (dispatch, getState, { Components }) => {
        // Dispatch initialization actions
        dispatch(Components.registerComponent(SharingButtons, { role: 'toolbar:buttons:right' }));
    }
});