import { connect } from 'react-redux' ; import { MouseCoordinatesControl } from './mouse_coordinates_control' ; import { getMouseCoordinates , getMapZoom } from '../../../selectors/map_selectors' ; import { MapStoreState } from '../../../reducers/store' ; function mapStateToProps ( state ) { return { mouseCoordinates : getMouseCoordinates ( state ) , zoom : getMapZoom ( state ) , } ; } const connected = connect ( mapStateToProps , { } ) ( MouseCoordinatesControl ) ; export { connected as MouseCoordinatesControl } ;