mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 07:05:19 -05:00
23 lines
649 B
JavaScript
23 lines
649 B
JavaScript
|
import ErrorBoundaryFallback from '../js/features/pdf-preview/components/error-boundary-fallback'
|
||
|
import { setupContext } from './fixtures/context'
|
||
|
import { withContextRoot } from './utils/with-context-root'
|
||
|
|
||
|
export default {
|
||
|
title: 'PDF Preview / Error Boundary',
|
||
|
component: ErrorBoundaryFallback,
|
||
|
}
|
||
|
|
||
|
setupContext()
|
||
|
|
||
|
export const PreviewErrorBoundary = () => {
|
||
|
return withContextRoot(<ErrorBoundaryFallback type="preview" />)
|
||
|
}
|
||
|
|
||
|
export const PdfErrorBoundary = () => {
|
||
|
return withContextRoot(<ErrorBoundaryFallback type="pdf" />)
|
||
|
}
|
||
|
|
||
|
export const LogsErrorBoundary = () => {
|
||
|
return withContextRoot(<ErrorBoundaryFallback type="logs" />)
|
||
|
}
|