blob: 9b196a1b9cf632637333932950331ff583b3acc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import { connect } from 'react-redux'
import { pauseSimulation } from '../../../actions/simulation/playback'
import { incrementTick } from '../../../actions/simulation/tick'
import TimelineComponent from '../../../components/app/timeline/TimelineComponent'
const mapStateToProps = state => {
return {
isPlaying: state.isPlaying,
currentTick: state.currentTick,
lastSimulatedTick: state.lastSimulatedTick,
currentTopologyId: state.currentTopologyId,
}
}
const mapDispatchToProps = dispatch => {
return {
incrementTick: () => dispatch(incrementTick()),
pauseSimulation: () => dispatch(pauseSimulation()),
}
}
const TimelineContainer = connect(mapStateToProps, mapDispatchToProps)(
TimelineComponent,
)
export default TimelineContainer
|