2020-01-20 17:47:03 +01:00
|
|
|
import { connect } from 'react-redux';
|
2021-04-28 11:53:04 +02:00
|
|
|
import {
|
|
|
|
doClaimSearch,
|
|
|
|
selectClaimSearchByQuery,
|
|
|
|
selectFetchingClaimSearchByQuery,
|
|
|
|
SETTINGS,
|
|
|
|
selectClaimsByUri,
|
|
|
|
} from 'lbry-redux';
|
2021-09-09 09:02:31 +02:00
|
|
|
import { doFetchViewCount } from 'lbryinc';
|
2020-03-10 00:46:37 +01:00
|
|
|
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
|
2021-03-31 22:55:26 +02:00
|
|
|
import { makeSelectClientSetting, selectShowMatureContent } from 'redux/selectors/settings';
|
2021-04-24 06:44:42 +02:00
|
|
|
import { selectModerationBlockList } from 'redux/selectors/comments';
|
|
|
|
import { selectMutedChannels } from 'redux/selectors/blocked';
|
2020-01-20 17:47:03 +01:00
|
|
|
import ClaimListDiscover from './view';
|
|
|
|
|
2021-03-03 19:50:16 +01:00
|
|
|
const select = (state) => ({
|
2020-01-20 17:47:03 +01:00
|
|
|
claimSearchByQuery: selectClaimSearchByQuery(state),
|
2021-04-28 11:53:04 +02:00
|
|
|
claimsByUri: selectClaimsByUri(state),
|
2020-09-11 21:48:23 +02:00
|
|
|
fetchingClaimSearchByQuery: selectFetchingClaimSearchByQuery(state),
|
2021-03-31 22:55:26 +02:00
|
|
|
showNsfw: selectShowMatureContent(state),
|
2020-04-15 18:43:22 +02:00
|
|
|
hideReposts: makeSelectClientSetting(SETTINGS.HIDE_REPOSTS)(state),
|
2021-04-24 06:44:42 +02:00
|
|
|
mutedUris: selectMutedChannels(state),
|
|
|
|
blockedUris: selectModerationBlockList(state),
|
2020-01-20 17:47:03 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
const perform = {
|
|
|
|
doClaimSearch,
|
2020-03-10 00:46:37 +01:00
|
|
|
doToggleTagFollowDesktop,
|
2021-09-09 09:02:31 +02:00
|
|
|
doFetchViewCount,
|
2020-01-20 17:47:03 +01:00
|
|
|
};
|
|
|
|
|
2020-04-15 18:43:22 +02:00
|
|
|
export default connect(select, perform)(ClaimListDiscover);
|