0
0
instrumental/app/javascript/mastodon/features/ui/components/notifications_counter_icon.js
2023-05-23 17:15:17 +02:00

11 lines
272 B
JavaScript

import { connect } from 'react-redux';
import { IconWithBadge } from 'mastodon/components/icon_with_badge';
const mapStateToProps = state => ({
count: state.getIn(['notifications', 'unread']),
id: 'bell',
});
export default connect(mapStateToProps)(IconWithBadge);