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