bigbuffet-rw/app/soapbox/features/ui/components/reports_counter_icon.js
2020-08-24 18:00:09 -05:00

9 lines
270 B
JavaScript

import { connect } from 'react-redux';
import IconWithBadge from 'soapbox/components/icon_with_badge';
const mapStateToProps = state => ({
count: state.getIn(['admin', 'open_report_count']),
id: 'gavel',
});
export default connect(mapStateToProps)(IconWithBadge);