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

20 lines
751 B
JavaScript
Raw Normal View History

2020-01-20 17:47:03 +01:00
import { connect } from 'react-redux';
import { doClaimSearch, selectClaimSearchByQuery, selectFetchingClaimSearchByQuery, SETTINGS } from 'lbry-redux';
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
2021-03-31 21:07:11 +02:00
import { makeSelectClientSetting, selectShowMatureContent } from 'redux/selectors/settings';
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),
fetchingClaimSearchByQuery: selectFetchingClaimSearchByQuery(state),
2021-03-31 21:07:11 +02:00
showNsfw: selectShowMatureContent(state),
hideReposts: makeSelectClientSetting(SETTINGS.HIDE_REPOSTS)(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);