{"size": 591, "ext": "js", "max_stars_repo_path": "src/js/components/ShowMsg.js", "max_stars_repo_name": "anchung1/flickrApp", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/js/components/ShowMsg.js", "max_issues_repo_name": "anchung1/flickrApp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/js/components/ShowMsg.js", "max_forks_repo_name": "anchung1/flickrApp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.64, "max_line_length": 123, "alphanum_fraction": 0.4788494078}
var React = require('react');

var ShowMsg = React.createClass({

    render: function() {

        var msg;
        if (this.props.msg) {
            if (this.props.error) {
                msg = <div className="text-center"><span className="label label-danger">{this.props.msg}</span><br/></div>;
            } else {
                msg = <div className="text-center"><span className="label label-info">{this.props.msg}</span><br/></div>;
            }
        }

        return (
            <div>
                {msg}
            </div>
        );
    }

});

module.exports = ShowMsg;