mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-15 17:53:44 +08:00
21 lines
513 B
React
21 lines
513 B
React
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
|
||
|
import { RetinaImg } from 'mailspring-component-kit';
|
||
|
|
||
|
export default class LoadingCover extends React.Component {
|
||
|
static propTypes = {
|
||
|
active: PropTypes.bool,
|
||
|
};
|
||
|
|
||
|
render() {
|
||
|
return (
|
||
|
<div className={`loading-cover ${this.props.active && 'active'}`}>
|
||
|
<div className="loading-indicator">
|
||
|
<RetinaImg name="activity-loading-mask.png" mode={RetinaImg.Mode.ContentIsMask} />
|
||
|
</div>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
}
|