2022-08-09 09:48:59 -04:00
|
|
|
import PdfPreviewErrorBoundaryFallback from '../js/features/pdf-preview/components/pdf-preview-error-boundary-fallback'
|
2022-05-16 05:38:20 -04:00
|
|
|
import { ScopeDecorator } from './decorators/scope'
|
2022-03-18 06:13:26 -04:00
|
|
|
|
|
|
|
export default {
|
2022-03-28 06:23:21 -04:00
|
|
|
title: 'Editor / PDF Preview / Error Boundary',
|
2022-08-09 09:48:59 -04:00
|
|
|
component: PdfPreviewErrorBoundaryFallback,
|
2022-05-16 05:38:20 -04:00
|
|
|
decorators: [ScopeDecorator],
|
2022-03-18 06:13:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export const PreviewErrorBoundary = () => {
|
2022-08-09 09:48:59 -04:00
|
|
|
return <PdfPreviewErrorBoundaryFallback type="preview" />
|
2022-03-18 06:13:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export const PdfErrorBoundary = () => {
|
2022-08-09 09:48:59 -04:00
|
|
|
return <PdfPreviewErrorBoundaryFallback type="pdf" />
|
2022-03-18 06:13:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export const LogsErrorBoundary = () => {
|
2022-08-09 09:48:59 -04:00
|
|
|
return <PdfPreviewErrorBoundaryFallback type="logs" />
|
2022-03-18 06:13:26 -04:00
|
|
|
}
|