text: // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
  // See LICENSE.txt for license information.
  
  import {connect} from 'react-redux';
  import {bindActionCreators} from 'redux';
  
  import {getConfig} from 'mattermost-redux/selectors/entities/general';
  import {doPostActionWithCookie} from 'mattermost-redux/actions/posts';
  
  import MessageAttachment from './message_attachment';
  
  function mapStateToProps(state) {
      return {
          hasImageProxy: getConfig(state).HasImageProxy === 'true',
      };
  }
  
  function mapDispatchToProps(dispatch) {
      return {
          actions: bindActionCreators({
              doPostActionWithCookie,
          }, dispatch),
      };
  }
  
  export default connect(mapStateToProps, mapDispatchToProps)(MessageAttachment);
  