~cytrogen/masto-fe

ref: 0222df6047a8569d04cfdc36668d46b71bec2e75 masto-fe/app/javascript/mastodon/features/ui/components/notifications_counter_icon.js -rw-r--r-- 271 bytes
0222df60 — Claire Merge pull request #2236 from ClearlyClaire/glitch-soc/merge-upstream 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
import { connect } from 'react-redux';
import { IconWithBadge } from 'mastodon/components/icon_with_badge';

const mapStateToProps = state => ({
  count: state.getIn(['notifications', 'unread']),
  id: 'bell',
});

export default connect(mapStateToProps)(IconWithBadge);