mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 06:01:54 +00:00
d91ee50762
GitOrigin-RevId: 109a4357fc3b083ffbd3af5b8c98acf0f655f297
20 lines
565 B
JavaScript
20 lines
565 B
JavaScript
import ErrorBoundaryFallback from '../js/features/pdf-preview/components/error-boundary-fallback'
|
|
import { ScopeDecorator } from './decorators/scope'
|
|
|
|
export default {
|
|
title: 'Editor / PDF Preview / Error Boundary',
|
|
component: ErrorBoundaryFallback,
|
|
decorators: [ScopeDecorator],
|
|
}
|
|
|
|
export const PreviewErrorBoundary = () => {
|
|
return <ErrorBoundaryFallback type="preview" />
|
|
}
|
|
|
|
export const PdfErrorBoundary = () => {
|
|
return <ErrorBoundaryFallback type="pdf" />
|
|
}
|
|
|
|
export const LogsErrorBoundary = () => {
|
|
return <ErrorBoundaryFallback type="logs" />
|
|
}
|