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

14 lines
440 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import HomepageSort from './view';
import * as SETTINGS from 'constants/settings';
import { selectClientSetting, selectHomepageData } from 'redux/selectors/settings';
const select = (state) => ({
homepageData: selectHomepageData(state),
homepageOrder: selectClientSetting(state, SETTINGS.HOMEPAGE_ORDER),
});
// const perform = (dispatch) => ({});
export default connect(select)(HomepageSort);