mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
10 lines
342 B
JavaScript
10 lines
342 B
JavaScript
import { connect } from 'react-redux';
|
|
import IconWithBadge from 'flavours/glitch/components/icon_with_badge';
|
|
|
|
const mapStateToProps = state => ({
|
|
count: state.getIn(['local_settings', 'notifications', 'tab_badge']) ? state.getIn(['notifications', 'unread']) : 0,
|
|
id: 'bell',
|
|
});
|
|
|
|
export default connect(mapStateToProps)(IconWithBadge);
|