lbry-desktop/ui/page/welcome/index.js

17 lines
562 B
JavaScript
Raw Permalink Normal View History

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