var React = require('react/addons'); var ContainerDetailsHeader = React.createClass({ render: function () { var state; if (this.props.container.State.Running) { state = RUNNING; } else if (this.props.container.State.Restarting) { state = RESTARTING; } else if (this.props.container.State.Paused) { state = PAUSED; } else if (this.props.container.State.Downloading) { state = DOWNLOADING; } else { state = STOPPED; } return (