import LoadingOverlay from '../components/LoadingOverlay' ; import * as actions from '../actions/' ; import { StoreState } from '../types' ; import { connect , Dispatch } from 'react-redux' ; interface Props { visible : boolean ; } export function mapStateToProps ( { asyncCalls } ) { return { visible : asyncCalls . active > 0 , } ; } export function mapDispatchToProps ( dispatch ) { return { } ; } export default connect ( mapStateToProps , mapDispatchToProps ) ( LoadingOverlay ) ;