2018-03-26 23:32:43 +02:00
|
|
|
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
message: ?string,
|
|
|
|
};
|
|
|
|
|
2018-07-10 16:25:38 +02:00
|
|
|
class BusyIndicator extends React.PureComponent<Props> {
|
|
|
|
static defaultProps = {
|
|
|
|
message: '',
|
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const { message } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<span className="busy-indicator">
|
|
|
|
{message} <span className="busy-indicator__loader" />
|
|
|
|
</span>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
|
|
|
export default BusyIndicator;
|