28 lines
896 B
JavaScript
28 lines
896 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
doClaimSearch,
|
|
selectClaimSearchByQuery,
|
|
selectFetchingClaimSearch,
|
|
SETTINGS,
|
|
selectFollowedTags,
|
|
} from 'lbry-redux';
|
|
import { selectBlockedChannels } from 'redux/selectors/blocked';
|
|
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
import ClaimListDiscover from './view';
|
|
|
|
const select = state => ({
|
|
followedTags: selectFollowedTags(state),
|
|
claimSearchByQuery: selectClaimSearchByQuery(state),
|
|
loading: selectFetchingClaimSearch(state),
|
|
showNsfw: makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state),
|
|
hideReposts: makeSelectClientSetting(SETTINGS.HIDE_REPOSTS)(state),
|
|
hiddenUris: selectBlockedChannels(state),
|
|
});
|
|
|
|
const perform = {
|
|
doClaimSearch,
|
|
doToggleTagFollowDesktop,
|
|
};
|
|
|
|
export default connect(select, perform)(ClaimListDiscover);
|