lbry-desktop/ui/component/creatorAnalytics/index.js
2020-03-19 12:12:19 -04:00

14 lines
493 B
JavaScript

import { connect } from 'react-redux';
import { selectMyChannelClaims, selectFetchingMyChannels, doPrepareEdit } from 'lbry-redux';
import CreatorAnalytics from './view';
const select = state => ({
channels: selectMyChannelClaims(state),
fetchingChannels: selectFetchingMyChannels(state),
});
const perform = dispatch => ({
prepareEdit: channelName => dispatch(doPrepareEdit({ signing_channel: { name: channelName } })),
});
export default connect(select, perform)(CreatorAnalytics);