Files
ohif-viewer/platform/ui/src/viewer/ViewportLoadingIndicator.js
T

28 lines
562 B
JavaScript
Raw Normal View History

2019-08-13 15:36:46 -04:00
import React from 'react';
import PropTypes from 'prop-types';
export function ViewportLoadingIndicator(props) {
return (
<div
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;