import React from 'react' import {connect} from 'react-redux' import RelativeTime from 'components/relativetime' class ResultsBox extends React.Component { render() { if (this.props.query == '') { return null; } const queryDuration = this.props.queryDuration.toFixed(2); const cachedAt = this.props.cachedAt; const cacheTtl = this.props.cacheTtl; return (
); } } export default connect( (state) => { return { totalImported: state.lookup.totalRoutesImported, totalFiltered: state.lookup.totalRoutesFiltered, cachedAt: state.lookup.cachedAt, cacheTtl: state.lookup.cacheTtl, queryDuration: state.lookup.queryDurationMs } } )(ResultsBox)