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

16 lines
512 B
JavaScript
Raw Normal View History

import LivestreamList from './view';
import { connect } from 'react-redux';
import { doFetchActiveLivestreams } from 'redux/actions/livestream';
import { selectActiveLivestreams, selectFetchingActiveLivestreams } from 'redux/selectors/livestream';
2021-04-23 21:59:48 +02:00
const select = (state) => ({
activeLivestreams: selectActiveLivestreams(state),
fetchingActiveLivestreams: selectFetchingActiveLivestreams(state),
});
const perform = {
doFetchActiveLivestreams,
};
export default connect(select, perform)(LivestreamList);