mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-19 02:59:57 +00:00
18 lines
442 B
JavaScript
18 lines
442 B
JavaScript
import Chat from './Chat';
|
|
import { connect } from 'react-redux';
|
|
import { clearActivities, showNotice, sendEncryptedMessage } from '@/actions';
|
|
|
|
const mapStateToProps = state => ({
|
|
username: state.user.username,
|
|
userId: state.user.id,
|
|
translations: state.app.translations,
|
|
});
|
|
|
|
const mapDispatchToProps = {
|
|
clearActivities,
|
|
showNotice,
|
|
sendEncryptedMessage,
|
|
};
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Chat);
|