1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-30 16:18:07 +01:00
metamask-extension/ui/components/app/modals/account-modal-container/account-modal-container.container.js
2021-04-28 14:53:59 -05:00

24 lines
580 B
JavaScript

import { connect } from 'react-redux';
import { hideModal } from '../../../../store/actions';
import { getSelectedIdentity } from '../../../../selectors';
import AccountModalContainer from './account-modal-container.component';
function mapStateToProps(state, ownProps) {
return {
selectedIdentity: ownProps.selectedIdentity || getSelectedIdentity(state),
};
}
function mapDispatchToProps(dispatch) {
return {
hideModal: () => {
dispatch(hideModal());
},
};
}
export default connect(
mapStateToProps,
mapDispatchToProps,
)(AccountModalContainer);