2022-03-01 11:19:20 +08:00
|
|
|
import { connect } from 'react-redux';
|
2022-03-01 14:40:35 +08:00
|
|
|
import { doResolveUris } from 'redux/actions/claims';
|
2022-03-07 10:41:54 +08:00
|
|
|
import { doFetchLastActiveSubs } from 'redux/actions/subscriptions';
|
2022-03-04 15:15:23 +08:00
|
|
|
import { selectLastActiveSubscriptions, selectSubscriptionUris } from 'redux/selectors/subscriptions';
|
2022-03-01 11:19:20 +08:00
|
|
|
import ChannelsFollowingManage from './view';
|
|
|
|
|
|
|
|
const select = (state) => ({
|
|
|
|
subscribedChannelUris: selectSubscriptionUris(state),
|
2022-03-04 15:15:23 +08:00
|
|
|
lastActiveSubs: selectLastActiveSubscriptions(state),
|
2022-03-01 11:19:20 +08:00
|
|
|
});
|
|
|
|
|
2022-03-01 14:40:35 +08:00
|
|
|
const perform = {
|
|
|
|
doResolveUris,
|
2022-03-07 10:41:54 +08:00
|
|
|
doFetchLastActiveSubs,
|
2022-03-01 14:40:35 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(select, perform)(ChannelsFollowingManage);
|