2022-01-23 09:44:17 -08:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
|
|
|
import { makeGetStatus } from 'soapbox/selectors';
|
|
|
|
|
|
|
|
import QuotedStatus from '../components/quoted_status';
|
|
|
|
|
|
|
|
const makeMapStateToProps = () => {
|
|
|
|
const getStatus = makeGetStatus();
|
|
|
|
|
2022-01-24 07:52:15 -08:00
|
|
|
const mapStateToProps = (state, { statusId }) => ({
|
|
|
|
status: getStatus(state, { id: statusId }),
|
2022-01-23 09:44:17 -08:00
|
|
|
});
|
|
|
|
|
|
|
|
return mapStateToProps;
|
|
|
|
};
|
|
|
|
|
2022-01-24 07:52:15 -08:00
|
|
|
export default connect(makeMapStateToProps)(QuotedStatus);
|