content: import { formatThousands } from 'common/format';
  import SPELLS from 'common/SPELLS';
  import { SpellLink } from 'interface';
  import Analyzer from 'parser/core/Analyzer';
  import AbilityTracker from 'parser/shared/modules/AbilityTracker';
  import StatisticListBoxItem from 'parser/ui/StatisticListBoxItem';
  import React from 'react';
  
  /**
   * Restores 6% health every 1 sec when you have not taken damage for 5 sec.
   */
  
  class SecondWind extends Analyzer {
    static dependencies = {
      abilityTracker: AbilityTracker,
    };
  
    constructor(...args) {
      super(...args);
      this.active = this.selectedCombatant.hasTalent(SPELLS.SECOND_WIND_TALENT.id);
    }
  
    subStatistic() {
      const secondWind = this.abilityTracker.getAbility(SPELLS.SECOND_WIND_TALENT_HEAL.id);
      const heal = secondWind.healingEffective || 0;
      return (
        <StatisticListBoxItem
          title={
            <>
              <SpellLink id={SPELLS.SECOND_WIND_TALENT.id} /> health restored
            </>
          }
          value={formatThousands(heal)}
        />
      );
    }
  }
  
  export default SecondWind;
  