mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-19 21:33:21 +00:00
21 lines
539 B
React
21 lines
539 B
React
|
import { connect } from 'react-redux';
|
||
|
import { makeGetAccount } from '../../../selectors';
|
||
|
import Account from '../components/account';
|
||
|
|
||
|
const makeMapStateToProps = () => {
|
||
|
const getAccount = makeGetAccount();
|
||
|
|
||
|
const mapStateToProps = (state, props) => ({
|
||
|
account: getAccount(state, props.id),
|
||
|
me: state.getIn(['timelines', 'me'])
|
||
|
});
|
||
|
|
||
|
return mapStateToProps;
|
||
|
};
|
||
|
|
||
|
const mapDispatchToProps = (dispatch) => ({
|
||
|
//
|
||
|
});
|
||
|
|
||
|
export default connect(makeMapStateToProps, mapDispatchToProps)(Account);
|