import PropTypes from 'prop-types' import { Trans, useTranslation } from 'react-i18next' import PreviewLogEntryHeader from './preview-log-entry-header' import Icon from '../../../shared/components/icon' function PreviewLogsPaneMaxEntries({ totalEntries, entriesShown, hasErrors }) { const { t } = useTranslation() const title = t('log_entry_maximum_entries_title', { total: totalEntries, displayed: entriesShown, }) return (
{' '} {hasErrors ? ( ,

]} // eslint-disable-line react/jsx-key /> ) : ( ]} /> )}

) } PreviewLogsPaneMaxEntries.propTypes = { totalEntries: PropTypes.number, entriesShown: PropTypes.number, hasErrors: PropTypes.bool, } export default PreviewLogsPaneMaxEntries