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