mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 09:52:44 +00:00
d905863002
Create a generic ErrorBoundaryFallback component GitOrigin-RevId: 0c9200ddef2be3b90030a32eb8c36a59047cf2b4
20 lines
627 B
JavaScript
20 lines
627 B
JavaScript
import PdfPreviewErrorBoundaryFallback from '../js/features/pdf-preview/components/pdf-preview-error-boundary-fallback'
|
|
import { ScopeDecorator } from './decorators/scope'
|
|
|
|
export default {
|
|
title: 'Editor / PDF Preview / Error Boundary',
|
|
component: PdfPreviewErrorBoundaryFallback,
|
|
decorators: [ScopeDecorator],
|
|
}
|
|
|
|
export const PreviewErrorBoundary = () => {
|
|
return <PdfPreviewErrorBoundaryFallback type="preview" />
|
|
}
|
|
|
|
export const PdfErrorBoundary = () => {
|
|
return <PdfPreviewErrorBoundaryFallback type="pdf" />
|
|
}
|
|
|
|
export const LogsErrorBoundary = () => {
|
|
return <PdfPreviewErrorBoundaryFallback type="logs" />
|
|
}
|