glitch-soc/app/javascript/flavours/glitch/features/ui/components/notifications_counter_icon.js
2023-05-28 16:38:10 +02:00

11 lines
347 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);