* [MM-9374] Open Permalinks in app * Feedback review * Upgrade mattermost-redux * Fix eslint * Navigation fixes * Fixing style of merged lines
17 lines
479 B
JavaScript
17 lines
479 B
JavaScript
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {connect} from 'react-redux';
|
|
|
|
import {getConfig, getCurrentUrl} from 'mattermost-redux/selectors/entities/general';
|
|
|
|
import MarkdownLink from './markdown_link';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
serverURL: getCurrentUrl(state),
|
|
siteURL: getConfig(state).SiteURL,
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps)(MarkdownLink);
|