// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import {FormattedMessage} from 'react-intl'; import PropTypes from 'prop-types'; import React from 'react'; export default class LoadingScreen extends React.Component { constructor(props) { super(props); this.state = {}; } render() { let message = ( ); if (this.props.message) { message = this.props.message; } return (

{message}

); } } LoadingScreen.defaultProps = { position: 'relative' }; LoadingScreen.propTypes = { position: PropTypes.oneOf(['absolute', 'fixed', 'relative', 'static', 'inherit']), message: PropTypes.node };