2021-02-04 19:15:23 +01:00
|
|
|
import { connect } from 'react-redux';
|
2023-05-05 11:28:27 +02:00
|
|
|
import {
|
|
|
|
getSelectedIdentity,
|
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
|
|
|
getAccountType,
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
|
|
|
} from '../../../selectors';
|
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
|
|
|
import {
|
|
|
|
getCustodyAccountDetails,
|
|
|
|
getIsCustodianSupportedChain,
|
|
|
|
} from '../../../selectors/institutional/selectors';
|
|
|
|
import { getProviderConfig } from '../../../ducks/metamask/metamask';
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
2021-02-04 19:15:23 +01:00
|
|
|
import SelectedAccount from './selected-account.component';
|
2018-06-04 18:33:25 +02:00
|
|
|
|
2020-02-15 21:34:12 +01:00
|
|
|
const mapStateToProps = (state) => {
|
2018-06-04 18:33:25 +02:00
|
|
|
return {
|
2019-12-03 21:04:28 +01:00
|
|
|
selectedIdentity: getSelectedIdentity(state),
|
2023-05-05 11:28:27 +02:00
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
|
|
|
|
accountType: getAccountType(state),
|
|
|
|
accountDetails: getCustodyAccountDetails(state),
|
|
|
|
provider: getProviderConfig(state),
|
|
|
|
isCustodianSupportedChain: getIsCustodianSupportedChain(state),
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
|
|
|
};
|
2018-06-04 18:33:25 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
export default connect(mapStateToProps)(SelectedAccount);
|