overleaf/services/web/frontend/stories/pdf-preview-error-boundary.stories.js
Alf Eaton d91ee50762 Standardise scope/context usage in Storybook stories (#7842)
GitOrigin-RevId: 109a4357fc3b083ffbd3af5b8c98acf0f655f297
2022-05-17 08:04:12 +00:00

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" />
}