2022-03-18 06:13:26 -04:00
|
|
|
import ErrorBoundaryFallback from '../js/features/pdf-preview/components/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-03-18 06:13:26 -04:00
|
|
|
component: ErrorBoundaryFallback,
|
2022-05-16 05:38:20 -04:00
|
|
|
decorators: [ScopeDecorator],
|
2022-03-18 06:13:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export const PreviewErrorBoundary = () => {
|
2022-05-16 05:38:20 -04:00
|
|
|
return <ErrorBoundaryFallback type="preview" />
|
2022-03-18 06:13:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export const PdfErrorBoundary = () => {
|
2022-05-16 05:38:20 -04:00
|
|
|
return <ErrorBoundaryFallback type="pdf" />
|
2022-03-18 06:13:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export const LogsErrorBoundary = () => {
|
2022-05-16 05:38:20 -04:00
|
|
|
return <ErrorBoundaryFallback type="logs" />
|
2022-03-18 06:13:26 -04:00
|
|
|
}
|