summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/models/Plugin.js
blob: 0654f85c50d86e7c527ae0f946c55f9f5e1254d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const { Record } = require('immutable');

const DEFAULTS = {
    init:   ((dispatch, getState) => {}),
    reduce: ((state, action) => state),
    actions: {}
};

class Plugin extends Record(DEFAULTS) {

}

module.exports = Plugin;