lbry-desktop/ui/page/livestreamSetup/index.js

20 lines
729 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2021-04-14 17:56:45 +02:00
import { selectMyChannelClaims, selectFetchingMyChannels, selectPendingClaims, doClearPublish } from 'lbry-redux';
import { selectActiveChannelClaim } from 'redux/selectors/app';
import LivestreamSetupPage from './view';
2021-04-14 17:56:45 +02:00
import { push } from 'connected-react-router';
const select = (state) => ({
channels: selectMyChannelClaims(state),
fetchingChannels: selectFetchingMyChannels(state),
activeChannelClaim: selectActiveChannelClaim(state),
pendingClaims: selectPendingClaims(state),
});
2021-04-14 17:56:45 +02:00
const perform = (dispatch) => ({
doNewLivestream: (path) => {
dispatch(doClearPublish());
dispatch(push(path));
},
});
export default connect(select, perform)(LivestreamSetupPage);