Skip to content

Instantly share code, notes, and snippets.

@oxodesign
Last active August 29, 2018 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oxodesign/7a604c449651541698df5b12874160dc to your computer and use it in GitHub Desktop.
Save oxodesign/7a604c449651541698df5b12874160dc to your computer and use it in GitHub Desktop.
import React, {Component} from 'react';
class Online extends Component {
render() {
let status = <span className="text-danger">OFFLINE</span>;
if(this.props.online === true){
status = <span className="text-success">ONLINE</span>;
}
return (
<p className="text-center">
Strem Status: {status}
</p>
);
}
}
export default Online;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment