import PropTypes from 'prop-types'; import React from 'react'; import ProgressBar from 'Components/ProgressBar'; import { sizes } from 'Helpers/Props'; import getProgressBarKind from 'Utilities/Author/getProgressBarKind'; import translate from 'Utilities/String/translate'; import styles from './AuthorIndexProgressBar.css'; function AuthorIndexProgressBar(props) { const { monitored, status, bookCount, availableBookCount, bookFileCount, totalBookCount, posterWidth, detailedProgressBar } = props; const progress = bookCount ? (availableBookCount / bookCount) * 100 : 100; const text = `${availableBookCount} / ${bookCount}`; return ( ); } AuthorIndexProgressBar.propTypes = { monitored: PropTypes.bool.isRequired, status: PropTypes.string.isRequired, bookCount: PropTypes.number.isRequired, availableBookCount: PropTypes.number.isRequired, bookFileCount: PropTypes.number.isRequired, totalBookCount: PropTypes.number.isRequired, posterWidth: PropTypes.number.isRequired, detailedProgressBar: PropTypes.bool.isRequired }; export default AuthorIndexProgressBar;