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