import PropTypes from 'prop-types' import classNames from 'classnames' import { memo, useCallback } from 'react' import PreviewLogEntryHeader from '../../preview/components/preview-log-entry-header' import PdfLogEntryContent from './pdf-log-entry-content' function PdfLogEntry({ headerTitle, headerIcon, rawContent, logType, formattedContent, extraInfoURL, level, sourceLocation, showSourceLocationLink = true, showCloseButton = false, entryAriaLabel = null, customClass, onSourceLocationClick, onClose, }) { const handleLogEntryLinkClick = useCallback( event => { event.preventDefault() onSourceLocationClick(sourceLocation) }, [onSourceLocationClick, sourceLocation] ) return (