mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 23:42:44 +08:00
13 lines
408 B
JavaScript
13 lines
408 B
JavaScript
import { connect } from 'react-redux';
|
|
import { bindActionCreators } from 'redux';
|
|
import { logout } from 'plugin-api/beta/client/actions/auth';
|
|
import UserBox from '../components/UserBox';
|
|
|
|
const mapStateToProps = ({ auth }) => ({
|
|
user: auth.user,
|
|
});
|
|
|
|
const mapDispatchToProps = dispatch => bindActionCreators({ logout }, dispatch);
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(UserBox);
|