2021-07-06 09:29:46 +08:00
|
|
|
import LivestreamList from './view';
|
2022-05-11 16:04:12 +08:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doFetchActiveLivestreams } from 'redux/actions/livestream';
|
|
|
|
import { selectActiveLivestreams, selectFetchingActiveLivestreams } from 'redux/selectors/livestream';
|
2021-04-23 15:59:48 -04:00
|
|
|
|
2022-05-11 16:04:12 +08:00
|
|
|
const select = (state) => ({
|
|
|
|
activeLivestreams: selectActiveLivestreams(state),
|
|
|
|
fetchingActiveLivestreams: selectFetchingActiveLivestreams(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = {
|
|
|
|
doFetchActiveLivestreams,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(select, perform)(LivestreamList);
|