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

30 lines
748 B
JavaScript
Raw Normal View History

2019-06-11 14:10:58 -04:00
import { connect } from 'react-redux';
import {
doClaimSearch,
2019-08-22 21:04:48 -04:00
selectClaimSearchByQuery,
selectFetchingClaimSearch,
doToggleTagFollow,
selectBlockedChannels,
SETTINGS,
} from 'lbry-redux';
import { makeSelectClientSetting } from 'redux/selectors/settings';
2019-06-19 01:05:43 -04:00
import ClaimListDiscover from './view';
2019-06-11 14:10:58 -04:00
const select = state => ({
2019-08-22 21:04:48 -04:00
claimSearchByQuery: selectClaimSearchByQuery(state),
2019-06-11 14:10:58 -04:00
loading: selectFetchingClaimSearch(state),
2019-09-17 14:49:03 -04:00
showNsfw: makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state),
2020-02-20 12:30:27 +00:00
showReposts: makeSelectClientSetting(SETTINGS.SHOW_REPOSTS)(state),
hiddenUris: selectBlockedChannels(state),
2019-06-11 14:10:58 -04:00
});
const perform = {
doClaimSearch,
2019-06-17 16:32:38 -04:00
doToggleTagFollow,
2019-06-11 14:10:58 -04:00
};
export default connect(
select,
perform
2019-06-19 01:05:43 -04:00
)(ClaimListDiscover);