2019-05-22 18:35:22 -05:00
|
|
|
import { connect } from 'react-redux';
|
2019-06-12 13:58:47 -05:00
|
|
|
import IconWithBadge from 'flavours/glitch/components/icon_with_badge';
|
2019-05-22 18:35:22 -05:00
|
|
|
|
|
|
|
const mapStateToProps = state => ({
|
2019-05-25 19:55:37 -05:00
|
|
|
count: state.getIn(['local_settings', 'notifications', 'tab_badge']) ? state.getIn(['notifications', 'unread']) : 0,
|
2019-06-12 13:58:47 -05:00
|
|
|
id: 'bell',
|
2019-05-22 18:35:22 -05:00
|
|
|
});
|
|
|
|
|
2019-05-25 19:55:37 -05:00
|
|
|
export default connect(mapStateToProps)(IconWithBadge);
|