about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/ui/components/notifications_counter_icon.js
blob: 679c02dcee56bbfc07e6846fc9249a5a56e689d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
import { connect } from 'react-redux';
import IconWithBadge from 'flavours/glitch/components/icon';

const mapStateToProps = state => ({
  count: state.getIn(['local_settings', 'notifications', 'tab_badge']) ? state.getIn(['notifications', 'unread']) : 0,
  icon: 'bell',
});

export default connect(mapStateToProps)(IconWithBadge);