export function StatusBar( { health } ) {
	if ( ! health ) {
		return null;
	}
	return (
		<div className="newsroom-settings__health">
			{ Object.entries( health ).map( ( [ key, row ] ) => (
				<span key={ key } className={ `newsroom-settings__chip newsroom-settings__chip--${ row.state }` }>
					{ row.message }
				</span>
			) ) }
		</div>
	);
}
