You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
471 B

  1. import { connect } from 'react-redux';
  2. import IconWithBadge from 'mastodon/components/icon_with_badge';
  3. const mapStateToProps = state => ({
  4. count: state.getIn(['notifications', 'unread']),
  5. issueBadge: state.getIn(['settings', 'notifications', 'alerts']).includes(true) && state.getIn(['notifications', 'browserSupport']) && state.getIn(['notifications', 'browserPermission']) !== 'granted',
  6. id: 'bell',
  7. });
  8. export default connect(mapStateToProps)(IconWithBadge);