2021-08-05 09:00:21 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doWalletStatus, selectWalletIsEncrypted } from 'lbry-redux';
|
2021-08-06 09:43:21 +02:00
|
|
|
import { selectUser, selectUserVerifiedEmail } from 'redux/selectors/user';
|
2021-08-09 07:50:11 +02:00
|
|
|
import { selectLanguage } from 'redux/selectors/settings';
|
|
|
|
|
2021-08-05 09:00:21 +02:00
|
|
|
import SettingAccount from './view';
|
|
|
|
|
|
|
|
const select = (state) => ({
|
|
|
|
isAuthenticated: selectUserVerifiedEmail(state),
|
|
|
|
walletEncrypted: selectWalletIsEncrypted(state),
|
2021-08-06 09:43:21 +02:00
|
|
|
user: selectUser(state),
|
2021-08-09 07:50:11 +02:00
|
|
|
language: selectLanguage(state),
|
2021-08-05 09:00:21 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
|
|
|
doWalletStatus: () => dispatch(doWalletStatus()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(SettingAccount);
|