mattermost-mobile/app/components/message_attachments/interactive_action/index.js

26 lines
702 B
JavaScript

// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {doPostAction} from 'mattermost-redux/actions/posts';
import {getTheme} from 'mattermost-redux/selectors/entities/preferences';
import InteractiveAction from './interactive_action';
function mapStateToProps(state) {
return {
theme: getTheme(state),
};
}
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators({
doPostAction,
}, dispatch),
};
}
export default connect(mapStateToProps, mapDispatchToProps)(InteractiveAction);