mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
16 lines
418 B
JavaScript
16 lines
418 B
JavaScript
import { connect } from 'react-redux';
|
|
import StatusCheckBox from '../components/status_check_box';
|
|
import { makeGetStatus } from 'flavours/glitch/selectors';
|
|
|
|
const makeMapStateToProps = () => {
|
|
const getStatus = makeGetStatus();
|
|
|
|
const mapStateToProps = (state, { id }) => ({
|
|
status: getStatus(state, { id }),
|
|
});
|
|
|
|
return mapStateToProps;
|
|
};
|
|
|
|
export default connect(makeMapStateToProps)(StatusCheckBox);
|