summaryrefslogtreecommitdiff
path: root/src/components/timeline/TimelineLabelsComponent.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/timeline/TimelineLabelsComponent.js')
-rw-r--r--src/components/timeline/TimelineLabelsComponent.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/timeline/TimelineLabelsComponent.js b/src/components/timeline/TimelineLabelsComponent.js
new file mode 100644
index 00000000..1f6053a1
--- /dev/null
+++ b/src/components/timeline/TimelineLabelsComponent.js
@@ -0,0 +1,11 @@
+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;