1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-01 13:47:06 +01:00
metamask-extension/ui/components/app/selected-account/selected-account.container.js
Albert Olivé c7bb906b03
[MMI] Added code fencing in account details modal and selected accounts (#18070)
* Added code fencing in account details modal and selected accounts

* Fixed pipeline issues

* Remove one code fence
2023-05-05 11:28:27 +02:00

30 lines
938 B
JavaScript

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';
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);