blob: e18158e4262fd1bd887a2fe0637cacce6619b9e5 (
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, mapDispatchToProps) {
return ReactRedux.connect(mapStateToProps, mapDispatchToProps)(Component);
}
module.exports = connect;
|