You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
587 B
22 lines
587 B
import { connect } from 'react-redux';
|
|
import * as actions from '../../../../store/actions';
|
|
import AddToAddressBookModal from './add-to-addressbook-modal.component';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
...(state.appState.modal.modalState.props || {}),
|
|
};
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
hideModal: () => dispatch(actions.hideModal()),
|
|
addToAddressBook: (recipient, nickname) =>
|
|
dispatch(actions.addToAddressBook(recipient, nickname)),
|
|
};
|
|
}
|
|
|
|
export default connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps,
|
|
)(AddToAddressBookModal);
|
|
|