mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 03:20:47 +00:00
9daa8f5d98
[web] rename all the JSX files to .jsx/.tsx GitOrigin-RevId: 82056ae47e017523722cf258dcc83c8a925a28f7
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" />
|
|
}
|