summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/connect.js
blob: 2bd9cb96f7d64fcb473f6e3d52db52af020da62d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const ReactRedux = require('react-redux');

/**
 * Connect a component to the GitBook store
 * @param {ReactComponent} Component
 * @param {Function} mapStateToProps
 * @return {ReactComponent}
 */
function connect(Component, mapStateToProps) {
    return ReactRedux.connect(Component, mapStateToProps);
}

module.exports = connect;