2020-11-03 21:09:56 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doChannelSubscribe } from 'redux/actions/subscriptions';
|
|
|
|
import { doToast } from 'redux/actions/notifications';
|
|
|
|
import { makeSelectNotificationsDisabled } from 'redux/selectors/subscriptions';
|
2021-07-06 03:29:46 +02:00
|
|
|
import NotificationContentChannelMenu from './view';
|
2020-11-03 21:09:56 +01:00
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
notificationsDisabled: makeSelectNotificationsDisabled(props.uri)(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, {
|
|
|
|
doChannelSubscribe,
|
|
|
|
doToast,
|
2021-07-06 03:29:46 +02:00
|
|
|
})(NotificationContentChannelMenu);
|