mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-12 19:42:01 +00:00
19 lines
592 B
JavaScript
19 lines
592 B
JavaScript
import ErrorBoundaryFallback from '../js/features/pdf-preview/components/error-boundary-fallback'
|
|
import { withContextRoot } from './utils/with-context-root'
|
|
|
|
export default {
|
|
title: 'Editor / PDF Preview / Error Boundary',
|
|
component: ErrorBoundaryFallback,
|
|
}
|
|
|
|
export const PreviewErrorBoundary = () => {
|
|
return withContextRoot(<ErrorBoundaryFallback type="preview" />)
|
|
}
|
|
|
|
export const PdfErrorBoundary = () => {
|
|
return withContextRoot(<ErrorBoundaryFallback type="pdf" />)
|
|
}
|
|
|
|
export const LogsErrorBoundary = () => {
|
|
return withContextRoot(<ErrorBoundaryFallback type="logs" />)
|
|
}
|