bigbuffet-rw/app/soapbox/features/status/containers/quoted_status_container.js
marcin mikołajczak fc0a5aea9c Normalization, process quotes in importFetchedStatuses
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-24 16:52:15 +01:00

17 lines
421 B
JavaScript

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