2020-06-24 13:40:39 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2020-07-14 19:44:21 +02:00
|
|
|
import { doToggleBlockChannel } from 'redux/actions/blocked';
|
|
|
|
import { selectBlockedChannels } from 'redux/selectors/blocked';
|
2020-06-24 13:40:39 +02:00
|
|
|
import ModalRemoveBlocked from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
blockedChannels: selectBlockedChannels(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
closeModal: () => dispatch(doHideModal()),
|
|
|
|
toggleBlockChannel: uri => dispatch(doToggleBlockChannel(uri)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(ModalRemoveBlocked);
|