2019-08-13 15:36:46 -04:00
|
|
|
import React from 'react';
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
|
|
export function ViewportLoadingIndicator(props) {
|
|
|
|
|
return (
|
|
|
|
|
<div
|
2020-04-06 10:43:35 +02:00
|
|
|
className="loading-indicator"
|
2019-08-13 15:36:46 -04:00
|
|
|
style={{
|
|
|
|
|
position: 'absolute',
|
|
|
|
|
top: 0,
|
|
|
|
|
left: 0,
|
|
|
|
|
right: 0,
|
|
|
|
|
bottom: 0,
|
|
|
|
|
margin: 'auto',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
pointerEvents: 'none',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Loading {props.percentComplete}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ViewportLoadingIndicator.propTypes = {
|
|
|
|
|
percentComplete: PropTypes.number,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default ViewportLoadingIndicator;
|