lbry-desktop/ui/page/welcome/index.js
2022-04-03 10:17:54 -04:00

16 lines
562 B
JavaScript

import { connect } from 'react-redux';
import Welcome from './view';
import { doSetWelcomeVersion } from 'redux/actions/app';
import { WELCOME_VERSION } from 'config';
import { selectDaemonSettings, selectDaemonStatus } from 'redux/selectors/settings';
const select = (state) => ({
daemonSettings: selectDaemonSettings(state),
daemonStatus: selectDaemonStatus(state),
});
const perform = (dispatch) => ({
updateWelcomeVersion: (version) => dispatch(doSetWelcomeVersion(version || WELCOME_VERSION)),
});
export default connect(select, perform)(Welcome);