pleroma/app/soapbox/features/compose/containers/quoted_status_container.js
marcin mikołajczak 15d4910db5 wip quote post composing
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-23 18:44:17 +01:00

16 lines
No EOL
449 B
JavaScript

import { connect } from 'react-redux';
import QuotedStatus from 'soapbox/features/status/components/quoted_status';
import { makeGetStatus } from 'soapbox/selectors';
const makeMapStateToProps = () => {
const getStatus = makeGetStatus();
const mapStateToProps = state => ({
status: getStatus(state, { id: state.getIn(['compose', 'quote']) }),
});
return mapStateToProps;
};
export default connect(makeMapStateToProps)(QuotedStatus);