2020-01-20 11:47:03 -05:00
|
|
|
import { connect } from 'react-redux';
|
2020-09-11 15:48:23 -04:00
|
|
|
import { doClaimSearch, selectClaimSearchByQuery, selectFetchingClaimSearchByQuery, SETTINGS } from 'lbry-redux';
|
2020-07-15 09:50:08 -04:00
|
|
|
import { selectBlockedChannels } from 'redux/selectors/blocked';
|
2020-03-09 19:46:37 -04:00
|
|
|
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
|
2020-01-20 11:47:03 -05:00
|
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
|
|
import ClaimListDiscover from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
claimSearchByQuery: selectClaimSearchByQuery(state),
|
2020-09-11 15:48:23 -04:00
|
|
|
fetchingClaimSearchByQuery: selectFetchingClaimSearchByQuery(state),
|
2020-01-20 11:47:03 -05:00
|
|
|
showNsfw: makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state),
|
2020-04-15 12:43:22 -04:00
|
|
|
hideReposts: makeSelectClientSetting(SETTINGS.HIDE_REPOSTS)(state),
|
2020-01-20 11:47:03 -05:00
|
|
|
hiddenUris: selectBlockedChannels(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = {
|
|
|
|
doClaimSearch,
|
2020-03-09 19:46:37 -04:00
|
|
|
doToggleTagFollowDesktop,
|
2020-01-20 11:47:03 -05:00
|
|
|
};
|
|
|
|
|
2020-04-15 12:43:22 -04:00
|
|
|
export default connect(select, perform)(ClaimListDiscover);
|