summaryrefslogtreecommitdiff
path: root/frontend/src/components/app/timeline/TimelineLabelsComponent.js
blob: 55818d24903af969efc1247f59ecb307cc0e4186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import React from 'react'
import { convertSecondsToFormattedTime } from '../../../util/date-time'

const TimelineLabelsComponent = ({ currentTick, lastSimulatedTick }) => (
    <div className="timeline-labels">
        <div className="start-time-label">
            {convertSecondsToFormattedTime(currentTick)}
        </div>
        <div className="end-time-label">
            {convertSecondsToFormattedTime(lastSimulatedTick)}
        </div>
    </div>
)

export default TimelineLabelsComponent