mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
24 lines
513 B
JavaScript
24 lines
513 B
JavaScript
|
import React from 'react'
|
||
|
import PropTypes from 'prop-types'
|
||
|
import PreviewLogEntry from './preview-log-entry'
|
||
|
|
||
|
function PreviewLogsPane({ logEntries }) {
|
||
|
return (
|
||
|
<div className="pdf-logs">
|
||
|
{logEntries && logEntries.length > 0 ? (
|
||
|
logEntries.map((logEntry, idx) => (
|
||
|
<PreviewLogEntry key={idx} {...logEntry} />
|
||
|
))
|
||
|
) : (
|
||
|
<div>No logs</div>
|
||
|
)}
|
||
|
</div>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
PreviewLogsPane.propTypes = {
|
||
|
logEntries: PropTypes.array
|
||
|
}
|
||
|
|
||
|
export default PreviewLogsPane
|