1
0
puyopuyotetr.is/app/javascript/mastodon/features/ui/components/notifications_counter_icon.js

14 lines
388 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import NotificationsIcon from '@/material-icons/400-24px/notifications-fill.svg?react';
import { IconWithBadge } from 'mastodon/components/icon_with_badge';
const mapStateToProps = state => ({
count: state.getIn(['notifications', 'unread']),
id: 'bell',
icon: NotificationsIcon,
});
export default connect(mapStateToProps)(IconWithBadge);