bigbuffet-rw/app/soapbox/features/status/containers/quoted_status_container.js

18 lines
421 B
JavaScript
Raw Normal View History

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);