lbry-desktop/ui/component/common/busy-indicator.jsx

25 lines
405 B
React
Raw Permalink Normal View History

2018-03-26 23:32:43 +02:00
// @flow
import React from 'react';
type Props = {
message: ?string,
};
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;