@testqueryparkui/qp-es-ui
Version:
Query Park UI Components for React
24 lines (17 loc) • 472 B
JavaScript
// Query Park Inc. 2018
// This component renders the time it took to search for wells
import React from 'react'
import PropTypes from 'prop-types'
import Style from './index.module.css'
const WellsFound = ({
json: { payload: {
wells: { length },
queryTime
} }
}) => <p className={Style.WellsFound}>
{`${length} wells found in ${queryTime / 1000} seconds.`}
</p>
WellsFound.propTypes = {
json: PropTypes.object.isRequired
}
export default WellsFound