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

15 lines
484 B
JavaScript
Raw Permalink Normal View History

import { connect } from 'react-redux';
import { doChannelSubscribe } from 'redux/actions/subscriptions';
import { doToast } from 'redux/actions/notifications';
import { makeSelectNotificationsDisabled } from 'redux/selectors/subscriptions';
import SubscribeButton from './view';
const select = (state, props) => ({
notificationsDisabled: makeSelectNotificationsDisabled(props.uri)(state),
});
export default connect(select, {
doChannelSubscribe,
doToast,
})(SubscribeButton);