import PropTypes from 'prop-types'; import React from 'react'; import DescriptionList from 'Components/DescriptionList/DescriptionList'; import DescriptionListItem from 'Components/DescriptionList/DescriptionListItem'; import styles from './ArtistIndexFooter.css'; function ArtistIndexFooter({ series }) { const count = series.length; let tracks = 0; let trackFiles = 0; let ended = 0; let continuing = 0; let monitored = 0; series.forEach((s) => { tracks += s.trackCount || 0; trackFiles += s.trackFileCount || 0; if (s.status === 'ended') { ended++; } else { continuing++; } if (s.monitored) { monitored++; } }); return (