mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
ff88387a4a
Port 0e445ebb13
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
10 lines
333 B
JavaScript
10 lines
333 B
JavaScript
import { connect } from 'react-redux';
|
|
import IconWithBadge from 'flavours/glitch/components/icon';
|
|
|
|
const mapStateToProps = state => ({
|
|
count: state.getIn(['local_settings', 'notifications', 'tab_badge']) ? state.getIn(['notifications', 'unread']) : 0,
|
|
icon: 'bell',
|
|
});
|
|
|
|
export default connect(mapStateToProps)(IconWithBadge);
|