2020-02-28 10:20:47 -05:00
|
|
|
import LoadingBar from 'react-redux-loading-bar'
|
2019-07-02 03:10:25 -04:00
|
|
|
|
|
|
|
const mapStateToProps = (state, ownProps) => ({
|
|
|
|
loading: state.get('loadingBar')[ownProps.scope || 'default'],
|
2020-04-11 18:29:19 -04:00
|
|
|
})
|
2019-07-02 03:10:25 -04:00
|
|
|
|
2020-02-28 10:20:47 -05:00
|
|
|
export default connect(mapStateToProps)(LoadingBar.WrappedComponent)
|