2019-07-03 06:43:32 +02:00
|
|
|
import * as SETTINGS from 'constants/settings';
|
2019-06-11 20:10:58 +02:00
|
|
|
import { connect } from 'react-redux';
|
2019-08-02 02:56:25 +02:00
|
|
|
import {
|
|
|
|
doClaimSearch,
|
2019-08-19 06:49:54 +02:00
|
|
|
selectClaimSearchByQueryCanonical,
|
2019-08-02 02:56:25 +02:00
|
|
|
selectFetchingClaimSearch,
|
|
|
|
doToggleTagFollow,
|
|
|
|
selectBlockedChannels,
|
|
|
|
} from 'lbry-redux';
|
2019-07-01 03:52:38 +02:00
|
|
|
import { selectSubscriptions } from 'redux/selectors/subscriptions';
|
2019-07-03 06:43:32 +02:00
|
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
2019-06-19 07:05:43 +02:00
|
|
|
import ClaimListDiscover from './view';
|
2019-06-11 20:10:58 +02:00
|
|
|
|
|
|
|
const select = state => ({
|
2019-08-19 06:49:54 +02:00
|
|
|
claimSearchByQuery: selectClaimSearchByQueryCanonical(state),
|
2019-06-11 20:10:58 +02:00
|
|
|
loading: selectFetchingClaimSearch(state),
|
2019-07-01 03:52:38 +02:00
|
|
|
subscribedChannels: selectSubscriptions(state),
|
2019-07-03 06:43:32 +02:00
|
|
|
showNsfw: makeSelectClientSetting(SETTINGS.SHOW_NSFW)(state),
|
2019-08-02 02:56:25 +02:00
|
|
|
hiddenUris: selectBlockedChannels(state),
|
2019-06-11 20:10:58 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
const perform = {
|
|
|
|
doClaimSearch,
|
2019-06-17 22:32:38 +02:00
|
|
|
doToggleTagFollow,
|
2019-06-11 20:10:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
2019-06-19 07:05:43 +02:00
|
|
|
)(ClaimListDiscover);
|