16 lines
502 B
JavaScript
16 lines
502 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
import { doHideModal } from 'redux/actions/app';
|
||
|
import ModalRemoveBlocked from './view';
|
||
|
import { doToggleBlockChannel, selectBlockedChannels } from 'lbry-redux';
|
||
|
|
||
|
const select = (state, props) => ({
|
||
|
blockedChannels: selectBlockedChannels(state),
|
||
|
});
|
||
|
|
||
|
const perform = dispatch => ({
|
||
|
closeModal: () => dispatch(doHideModal()),
|
||
|
toggleBlockChannel: uri => dispatch(doToggleBlockChannel(uri)),
|
||
|
});
|
||
|
|
||
|
export default connect(select, perform)(ModalRemoveBlocked);
|