2020-01-02 17:30:27 +01:00
|
|
|
import { connect } from 'react-redux';
|
2020-10-05 20:31:51 +02:00
|
|
|
import { selectFollowedTags } from 'redux/selectors/tags';
|
2020-01-02 17:30:27 +01:00
|
|
|
import { selectSubscriptions } from 'redux/selectors/subscriptions';
|
2021-03-31 22:55:26 +02:00
|
|
|
import { selectShowMatureContent, selectHomepageData } from 'redux/selectors/settings';
|
2020-10-13 21:26:59 +02:00
|
|
|
|
2020-01-02 17:30:27 +01:00
|
|
|
import DiscoverPage from './view';
|
|
|
|
|
2021-03-31 22:55:26 +02:00
|
|
|
const select = (state) => ({
|
2020-01-02 17:30:27 +01:00
|
|
|
followedTags: selectFollowedTags(state),
|
|
|
|
subscribedChannels: selectSubscriptions(state),
|
2021-03-31 22:55:26 +02:00
|
|
|
showNsfw: selectShowMatureContent(state),
|
2020-11-10 17:07:00 +01:00
|
|
|
homepageData: selectHomepageData(state),
|
2020-01-02 17:30:27 +01:00
|
|
|
});
|
|
|
|
|
2021-10-19 01:37:58 +02:00
|
|
|
export default connect(select)(DiscoverPage);
|