2019-07-17 22:49:06 +02:00
|
|
|
import { connect } from 'react-redux';
|
2018-04-18 06:03:01 +02:00
|
|
|
import Router from './view';
|
2019-07-17 22:49:06 +02:00
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
scroll: state.app.scrollHistory[state.app.scrollHistory.length - 1],
|
|
|
|
scrollHistory: state.app.scrollHistory,
|
|
|
|
currentScroll: state.app.currentScroll || 0,
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(Router);
|