import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { PureComponent } from 'react'; import DescriptionList from 'Components/DescriptionList/DescriptionList'; import DescriptionListItem from 'Components/DescriptionList/DescriptionListItem'; import translate from 'Utilities/String/translate'; import styles from './IndexerIndexFooter.css'; class IndexerIndexFooter extends PureComponent { render() { const { indexers, colorImpairedMode } = this.props; const count = indexers.length; let enabled = 0; let torrent = 0; indexers.forEach((s) => { if (s.enable) { enabled += 1; } if (s.protocol === 'torrent') { torrent++; } }); return (