1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-01 21:57:06 +01:00
metamask-extension/ui/components/app/selected-account/selected-account.container.js

30 lines
938 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
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
import SelectedAccount from './selected-account.component';
2020-02-15 21:34:12 +01:00
const mapStateToProps = (state) => {
return {
selectedIdentity: getSelectedIdentity(state),
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
accountType: getAccountType(state),
accountDetails: getCustodyAccountDetails(state),
provider: getProviderConfig(state),
isCustodianSupportedChain: getIsCustodianSupportedChain(state),
///: END:ONLY_INCLUDE_IN
};
};
export default connect(mapStateToProps)(SelectedAccount);