import PropTypes from 'prop-types'; import { clsm } from '../../utils'; import { app as $appContent } from '../../content'; const $content = $appContent.status_bar; const HEALTH = { STABLE: $content.stable, POOR: $content.poor }; const HealthIndicator = ({ health }) => { let color = ['bg-lightMode-gray', 'dark:bg-darkMode-gray']; // unknown stream health if (health === HEALTH.STABLE) color = 'bg-darkMode-green'; if (health === HEALTH.POOR) color = 'bg-darkMode-red'; return ( ); }; HealthIndicator.propTypes = { health: PropTypes.string.isRequired }; export default HealthIndicator;