mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 13:58:46 -05:00
f6fc3d468c
PDF Detach Updates GitOrigin-RevId: c09c4fe37a922b041cfa1376e110a264a88177c8
14 lines
457 B
JavaScript
14 lines
457 B
JavaScript
import PdfPreviewPane from './pdf-preview-pane'
|
|
import useCompileTriggers from '../hooks/use-compile-triggers'
|
|
import { memo } from 'react'
|
|
import withErrorBoundary from '../../../infrastructure/error-boundary'
|
|
import ErrorBoundaryFallback from './error-boundary-fallback'
|
|
|
|
function PdfPreview() {
|
|
useCompileTriggers()
|
|
return <PdfPreviewPane />
|
|
}
|
|
|
|
export default withErrorBoundary(memo(PdfPreview), () => (
|
|
<ErrorBoundaryFallback type="preview" />
|
|
))
|