lbry-desktop/src/renderer/component/subscribeButton/index.js

16 lines
486 B
JavaScript

import { connect } from 'react-redux';
import { doChannelSubscribe, doChannelUnsubscribe } from 'redux/actions/subscriptions';
import { doOpenModal } from 'redux/actions/app';
import { selectSubscriptions } from 'redux/selectors/subscriptions';
import SubscribeButton from './view';
const select = (state, props) => ({
subscriptions: selectSubscriptions(state),
});
export default connect(select, {
doChannelSubscribe,
doChannelUnsubscribe,
doOpenModal,
})(SubscribeButton);