17 lines
421 B
JavaScript
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);
|