2022-03-18 06:13:26 -04:00
|
|
|
import ErrorBoundaryFallback from '../js/features/pdf-preview/components/error-boundary-fallback'
|
|
|
|
import { setupContext } from './fixtures/context'
|
|
|
|
import { withContextRoot } from './utils/with-context-root'
|
|
|
|
|
|
|
|
export default {
|
2022-03-28 06:23:21 -04:00
|
|
|
title: 'Editor / PDF Preview / Error Boundary',
|
2022-03-18 06:13:26 -04:00
|
|
|
component: ErrorBoundaryFallback,
|
|
|
|
}
|
|
|
|
|
|
|
|
setupContext()
|
|
|
|
|
|
|
|
export const PreviewErrorBoundary = () => {
|
|
|
|
return withContextRoot(<ErrorBoundaryFallback type="preview" />)
|
|
|
|
}
|
|
|
|
|
|
|
|
export const PdfErrorBoundary = () => {
|
|
|
|
return withContextRoot(<ErrorBoundaryFallback type="pdf" />)
|
|
|
|
}
|
|
|
|
|
|
|
|
export const LogsErrorBoundary = () => {
|
|
|
|
return withContextRoot(<ErrorBoundaryFallback type="logs" />)
|
|
|
|
}
|