Files
mattermost-mobile/app/components/markdown/markdown_image/index.js
Mattermost Build c4b683a58f Fix when SVG uri does not return data in the url (#5973) (#5974)
(cherry picked from commit cef3295420)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-02-15 21:40:13 -03:00

19 lines
520 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {connect} from 'react-redux';
import {getCurrentUrl} from '@mm-redux/selectors/entities/general';
import {getTheme} from '@mm-redux/selectors/entities/preferences';
import MarkdownImage from './markdown_image';
function mapStateToProps(state) {
return {
serverURL: getCurrentUrl(state),
theme: getTheme(state),
};
}
export default connect(mapStateToProps)(MarkdownImage);