Last active
August 29, 2018 10:41
-
-
Save oxodesign/7a604c449651541698df5b12874160dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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