29 lines
748 B
JavaScript
29 lines
748 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
doClaimSearch,
|
|
selectClaimSearchByQuery,
|
|
selectFetchingClaimSearch,
|
|
doToggleTagFollow,
|
|
selectBlockedChannels,
|
|
SETTINGS,
|
|
} from 'lbry-redux';
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
import ClaimListDiscover from './view';
|
|
|
|
const select = state => ({
|
|
claimSearchByQuery: selectClaimSearchByQuery(state),
|
|
loading: selectFetchingClaimSearch(state),
|
|
showNsfw: makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state),
|
|
showReposts: makeSelectClientSetting(SETTINGS.SHOW_REPOSTS)(state),
|
|
hiddenUris: selectBlockedChannels(state),
|
|
});
|
|
|
|
const perform = {
|
|
doClaimSearch,
|
|
doToggleTagFollow,
|
|
};
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(ClaimListDiscover);
|