23 lines
905 B
JavaScript
23 lines
905 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectFetchingClaimSearch } from 'redux/selectors/claims';
|
|
import { selectFollowedTags } from 'redux/selectors/tags';
|
|
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
|
|
import { makeSelectClientSetting, selectShowMatureContent, selectLanguage } from 'redux/selectors/settings';
|
|
import { doSetClientSetting } from 'redux/actions/settings';
|
|
import * as SETTINGS from 'constants/settings';
|
|
import ClaimListHeader from './view';
|
|
|
|
const select = (state) => ({
|
|
followedTags: selectFollowedTags(state),
|
|
loading: selectFetchingClaimSearch(state),
|
|
showNsfw: selectShowMatureContent(state),
|
|
searchInLanguage: makeSelectClientSetting(SETTINGS.SEARCH_IN_LANGUAGE)(state),
|
|
languageSetting: selectLanguage(state),
|
|
});
|
|
|
|
const perform = {
|
|
doToggleTagFollowDesktop,
|
|
doSetClientSetting,
|
|
};
|
|
|
|
export default connect(select, perform)(ClaimListHeader);
|