lbry-desktop/ui/component/common/busy-indicator.jsx
2019-11-11 13:27:29 -05:00

24 lines
405 B
JavaScript

// @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>
);
}
}
export default BusyIndicator;