import { useTranslation } from 'react-i18next' import PdfLogEntryRawContent from './pdf-log-entry-raw-content' import PropTypes from 'prop-types' export default function PdfLogEntryContent({ rawContent, formattedContent, extraInfoURL, }) { const { t } = useTranslation() return (
{formattedContent && (
{formattedContent}
)} {extraInfoURL && (
{t('log_hint_extra_info')}
)} {rawContent && ( )}
) } PdfLogEntryContent.propTypes = { rawContent: PropTypes.string, formattedContent: PropTypes.node, extraInfoURL: PropTypes.string, }