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

23 lines
855 B
JavaScript
Raw Normal View History

2020-08-21 11:49:13 -04:00
import { connect } from 'react-redux';
import { selectFetchingClaimSearch, SETTINGS } from 'lbry-redux';
import { selectFollowedTags } from 'redux/selectors/tags';
2020-08-21 11:49:13 -04:00
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
2021-03-31 16:55:26 -04:00
import { makeSelectClientSetting, selectShowMatureContent, selectLanguage } from 'redux/selectors/settings';
2020-09-15 09:54:05 -04:00
import { doSetClientSetting } from 'redux/actions/settings';
import ClaimListHeader from './view';
2020-08-21 11:49:13 -04:00
2021-03-31 16:55:26 -04:00
const select = (state) => ({
2020-08-21 11:49:13 -04:00
followedTags: selectFollowedTags(state),
loading: selectFetchingClaimSearch(state),
2021-03-31 16:55:26 -04:00
showNsfw: selectShowMatureContent(state),
searchInLanguage: makeSelectClientSetting(SETTINGS.SEARCH_IN_LANGUAGE)(state),
languageSetting: selectLanguage(state),
2020-08-21 11:49:13 -04:00
});
const perform = {
doToggleTagFollowDesktop,
doSetClientSetting,
};
export default connect(select, perform)(ClaimListHeader);