mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-30 17:01:25 +00:00
16 lines
486 B
JavaScript
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);
|