(timeline: Timeline)
| 42 | } |
| 43 | |
| 44 | function modeLabel(timeline: Timeline): string { |
| 45 | return timeline.mode === 'replay' |
| 46 | ? text.timelineReplay |
| 47 | : timeline.mode === 'paused' ? text.timelinePaused : text.timelineLive; |
| 48 | } |
| 49 | |
| 50 | export default function AgentsTimeline(props: AgentsTimelineProps): JSX.Element { |
| 51 | const { timeline } = props; |