Source code for the custom Mastodon (Glitchsoc) instance on berserker.town.
https://berserker.town/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
546 B
10 lines
546 B
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,
|
|
issueBadge: state.getIn(['settings', 'notifications', 'alerts']).includes(true) && state.getIn(['notifications', 'browserSupport']) && state.getIn(['notifications', 'browserPermission']) !== 'granted',
|
|
id: 'bell',
|
|
});
|
|
|
|
export default connect(mapStateToProps)(IconWithBadge);
|
|
|