2019-05-22 16:35:22 -07:00
|
|
|
import { connect } from 'react-redux';
|
2023-05-23 08:15:17 -07:00
|
|
|
|
2024-01-12 12:16:48 -08:00
|
|
|
import NotificationsIcon from 'mastodon/../material-icons/400-24px/notifications-fill.svg?react';
|
2023-05-08 18:11:56 -07:00
|
|
|
import { IconWithBadge } from 'mastodon/components/icon_with_badge';
|
2019-05-22 16:35:22 -07:00
|
|
|
|
2023-10-24 10:45:08 -07:00
|
|
|
|
2019-05-22 16:35:22 -07:00
|
|
|
const mapStateToProps = state => ({
|
|
|
|
count: state.getIn(['notifications', 'unread']),
|
2019-05-25 17:55:37 -07:00
|
|
|
id: 'bell',
|
2023-10-24 10:45:08 -07:00
|
|
|
icon: NotificationsIcon,
|
2019-05-22 16:35:22 -07:00
|
|
|
});
|
|
|
|
|
2019-05-25 17:55:37 -07:00
|
|
|
export default connect(mapStateToProps)(IconWithBadge);
|