2020-08-17 21:07:16 +01:00
|
|
|
import React from 'react'
|
2020-08-17 21:39:25 +01:00
|
|
|
import { connect } from 'react-redux'
|
2020-02-28 15:20:47 +00:00
|
|
|
import LoadingBar from 'react-redux-loading-bar'
|
2019-07-02 08:10:25 +01:00
|
|
|
|
|
|
|
const mapStateToProps = (state, ownProps) => ({
|
|
|
|
loading: state.get('loadingBar')[ownProps.scope || 'default'],
|
2020-04-11 23:29:19 +01:00
|
|
|
})
|
2019-07-02 08:10:25 +01:00
|
|
|
|
2020-02-28 15:20:47 +00:00
|
|
|
export default connect(mapStateToProps)(LoadingBar.WrappedComponent)
|