2016-09-19 19:53:30 -04:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import LoadingBar from 'react-redux-loading-bar';
|
|
|
|
|
2019-01-02 10:07:33 -05:00
|
|
|
const mapStateToProps = (state, ownProps) => ({
|
|
|
|
loading: state.get('loadingBar')[ownProps.scope || 'default'],
|
2016-09-19 19:53:30 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(mapStateToProps)(LoadingBar.WrappedComponent);
|