import { connect } from 'react-redux' ; import { MapStoreState } from '../../../../../../reducers/store' ; import { getMapZoom , isUsingSearch } from '../../../../../../selectors/map_selectors' ; import { TOCEntryButton , ReduxStateProps , OwnProps } from './toc_entry_button' ; function mapStateToProps ( state , ownProps ) { return { isUsingSearch : isUsingSearch ( state ) , zoom : getMapZoom ( state ) , } ; } const connected = connect < ReduxStateProps , { } , OwnProps , MapStoreState > ( mapStateToProps ) ( TOCEntryButton ) ; export { connected as TOCEntryButton } ;