mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 16:18:07 +01:00
24 lines
580 B
JavaScript
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);
|