// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import PropTypes from 'prop-types'; import React from 'react'; import {FormattedMessage} from 'react-intl'; import * as FileUtils from 'utils/file_utils'; export default class ViewImagePopoverBar extends React.PureComponent { render() { var publicLink = ''; if (global.window.mm_config.EnablePublicLink === 'true') { publicLink = (
); } var footerClass = 'modal-button-bar'; if (this.props.show) { footerClass += ' footer--show'; } let downloadLinks = null; if (FileUtils.canDownloadFiles()) { downloadLinks = ( ); } return (