mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
485b43ed7e
Port 2936f42a14
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
14 lines
470 B
JavaScript
14 lines
470 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeGetReport } from 'flavours/glitch/selectors';
|
|
import AdminReport from '../components/admin_report';
|
|
|
|
const mapStateToProps = (state, { notification }) => {
|
|
const getReport = makeGetReport();
|
|
|
|
return {
|
|
report: notification.get('report') ? getReport(state, notification.get('report'), notification.getIn(['report', 'target_account', 'id'])) : null,
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps)(AdminReport);
|