lbry-desktop/ui/component/router/index.js

12 lines
365 B
JavaScript
Raw Normal View History

2019-07-17 16:49:06 -04:00
import { connect } from 'react-redux';
2019-09-26 12:07:11 -04:00
import { selectUserVerifiedEmail } from 'lbryinc';
2019-07-22 19:43:30 -04:00
import { selectScrollStartingPosition } from 'redux/selectors/app';
2018-04-18 00:03:01 -04:00
import Router from './view';
2019-07-17 16:49:06 -04:00
const select = state => ({
2019-07-22 19:43:30 -04:00
currentScroll: selectScrollStartingPosition(state),
2019-09-26 12:07:11 -04:00
isAuthenticated: selectUserVerifiedEmail(state),
2019-07-17 16:49:06 -04:00
});
export default connect(select)(Router);