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