lbry-desktop/src/renderer/component/common/loading-screen.jsx

28 lines
515 B
React
Raw Normal View History

2018-03-26 23:32:43 +02:00
// @flow
import React from 'react';
import Spinner from 'component/spinner';
2018-03-26 23:32:43 +02:00
type Props = {
spinner: boolean,
status: string,
};
2018-03-26 23:32:43 +02:00
class LoadingScreen extends React.PureComponent<Props> {
static defaultProps = {
spinner: true,
};
render() {
const { status, spinner } = this.props;
return (
<div className="content__loading">
{spinner && <Spinner light />}
2018-03-26 23:32:43 +02:00
<span className="content__loading-text">{status}</span>
</div>
);
}
}
export default LoadingScreen;