overleaf/services/web/frontend/stories/pdf-preview-error-boundary.stories.jsx

25 lines
766 B
React
Raw Normal View History

import PdfPreviewErrorBoundaryFallback from '../js/features/pdf-preview/components/pdf-preview-error-boundary-fallback'
import { ScopeDecorator } from './decorators/scope'
import { bsVersionDecorator } from '../../.storybook/utils/with-bootstrap-switcher'
export default {
title: 'Editor / PDF Preview / Error Boundary',
component: PdfPreviewErrorBoundaryFallback,
decorators: [ScopeDecorator],
argTypes: {
...bsVersionDecorator.argTypes,
},
}
export const PreviewErrorBoundary = () => {
return <PdfPreviewErrorBoundaryFallback type="preview" />
}
export const PdfErrorBoundary = () => {
return <PdfPreviewErrorBoundaryFallback type="pdf" />
}
export const LogsErrorBoundary = () => {
return <PdfPreviewErrorBoundaryFallback type="logs" />
}