|
@@ -3,9 +3,13 @@ import useCompileTriggers from '../hooks/use-compile-triggers'
|
|
|
import { memo } from 'react'
|
|
import { memo } from 'react'
|
|
|
import withErrorBoundary from '../../../infrastructure/error-boundary'
|
|
import withErrorBoundary from '../../../infrastructure/error-boundary'
|
|
|
import ErrorBoundaryFallback from './error-boundary-fallback'
|
|
import ErrorBoundaryFallback from './error-boundary-fallback'
|
|
|
|
|
+import { useLayoutContext } from '../../../shared/context/layout-context'
|
|
|
|
|
|
|
|
function PdfPreview() {
|
|
function PdfPreview() {
|
|
|
useCompileTriggers()
|
|
useCompileTriggers()
|
|
|
|
|
+
|
|
|
|
|
+ const { detachRole } = useLayoutContext()
|
|
|
|
|
+ if (detachRole === 'detacher') return null
|
|
|
return <PdfPreviewPane />
|
|
return <PdfPreviewPane />
|
|
|
}
|
|
}
|
|
|
|
|
|