2019-07-08 22:54:58 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-06-07 19:37:33 +02:00
|
|
|
import { doFetchModBlockedList } from 'redux/actions/comments';
|
2021-03-03 19:50:16 +01:00
|
|
|
import { selectMutedChannels } from 'redux/selectors/blocked';
|
|
|
|
import { selectModerationBlockList, selectFetchingModerationBlockList } from 'redux/selectors/comments';
|
2019-07-08 22:54:58 +02:00
|
|
|
import ListBlocked from './view';
|
|
|
|
|
2021-03-03 19:50:16 +01:00
|
|
|
const select = (state) => ({
|
|
|
|
mutedUris: selectMutedChannels(state),
|
|
|
|
blockedUris: selectModerationBlockList(state),
|
|
|
|
fetchingModerationBlockList: selectFetchingModerationBlockList(state),
|
2019-07-08 22:54:58 +02:00
|
|
|
});
|
|
|
|
|
2021-06-07 19:37:33 +02:00
|
|
|
const perform = (dispatch) => ({
|
|
|
|
fetchModBlockedList: () => dispatch(doFetchModBlockedList()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(ListBlocked);
|