lbry-desktop/ui/component/claimTilesDiscover/index.js

33 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

2020-01-20 17:47:03 +01:00
import { connect } from 'react-redux';
import {
doClaimSearch,
selectClaimSearchByQuery,
selectFetchingClaimSearchByQuery,
SETTINGS,
selectClaimsByUri,
} from 'lbry-redux';
import { doFetchViewCount } from 'lbryinc';
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
2021-03-31 22:55:26 +02:00
import { makeSelectClientSetting, selectShowMatureContent } from 'redux/selectors/settings';
import { selectModerationBlockList } from 'redux/selectors/comments';
import { selectMutedChannels } from 'redux/selectors/blocked';
2020-01-20 17:47:03 +01:00
import ClaimListDiscover from './view';
const select = (state) => ({
2020-01-20 17:47:03 +01:00
claimSearchByQuery: selectClaimSearchByQuery(state),
claimsByUri: selectClaimsByUri(state),
fetchingClaimSearchByQuery: selectFetchingClaimSearchByQuery(state),
2021-03-31 22:55:26 +02:00
showNsfw: selectShowMatureContent(state),
hideReposts: makeSelectClientSetting(SETTINGS.HIDE_REPOSTS)(state),
mutedUris: selectMutedChannels(state),
blockedUris: selectModerationBlockList(state),
2020-01-20 17:47:03 +01:00
});
const perform = {
doClaimSearch,
doToggleTagFollowDesktop,
doFetchViewCount,
2020-01-20 17:47:03 +01:00
};
export default connect(select, perform)(ClaimListDiscover);