const HealthHeart = ({ health, size, }: { health: number | undefined size: number }) => { const styles = { height: `${size}px`, width: `${size}px`, } return ( 15 && health < 50 ? 'text-th-warning' : health >= 50 ? 'text-th-success' : 'text-th-error' : 'text-th-fgd-4' } style={styles} viewBox="0 0 20 20" fill="currentColor" > 15 && health < 50 ? '1s' : health >= 50 ? '2s' : '0.33s' : '0s' } repeatCount="indefinite" /> 15 && health < 50 ? '1s' : health >= 50 ? '2s' : '0.33s' : '0s' } repeatCount="indefinite" /> ) } export default HealthHeart