2020-01-20 17:47:03 +01:00
|
|
|
import { connect } from 'react-redux';
|
2020-09-11 21:48:23 +02:00
|
|
|
import { doClaimSearch, selectClaimSearchByQuery, selectFetchingClaimSearchByQuery, SETTINGS } from 'lbry-redux';
|
2021-02-25 18:43:56 +01:00
|
|
|
import { selectMutedChannels } from 'redux/selectors/blocked';
|
2020-03-10 00:46:37 +01:00
|
|
|
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
|
2020-01-20 17:47:03 +01:00
|
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
|
|
import ClaimListDiscover from './view';
|
|
|
|
|
2021-02-25 18:43:56 +01:00
|
|
|
const select = (state) => ({
|
2020-01-20 17:47:03 +01:00
|
|
|
claimSearchByQuery: selectClaimSearchByQuery(state),
|
2020-09-11 21:48:23 +02:00
|
|
|
fetchingClaimSearchByQuery: selectFetchingClaimSearchByQuery(state),
|
2020-01-20 17:47:03 +01:00
|
|
|
showNsfw: makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state),
|
2020-04-15 18:43:22 +02:00
|
|
|
hideReposts: makeSelectClientSetting(SETTINGS.HIDE_REPOSTS)(state),
|
2021-02-25 18:43:56 +01:00
|
|
|
hiddenUris: selectMutedChannels(state),
|
2020-01-20 17:47:03 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
const perform = {
|
|
|
|
doClaimSearch,
|
2020-03-10 00:46:37 +01:00
|
|
|
doToggleTagFollowDesktop,
|
2020-01-20 17:47:03 +01:00
|
|
|
};
|
|
|
|
|
2020-04-15 18:43:22 +02:00
|
|
|
export default connect(select, perform)(ClaimListDiscover);
|