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

31 lines
1 KiB
JavaScript
Raw 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 { 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,
2020-01-20 17:47:03 +01:00
};
export default connect(select, perform)(ClaimListDiscover);