just-paja/improtresk-web

View on GitHub
src/components/HumanTimeRange.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import PropTypes from 'prop-types'
import React from 'react'

import HumanTime from './HumanTime'

const HumanTimeRange = ({ end, start }) => (
  <span>
    <HumanTime date={start} />
    &nbsp;-&nbsp;
    <HumanTime date={end} />
  </span>
)

HumanTimeRange.propTypes = {
  end: PropTypes.string.isRequired,
  start: PropTypes.string.isRequired
}

export default HumanTimeRange