pdf-preview-error-boundary.stories.jsx 627 B

1234567891011121314151617181920
  1. import PdfPreviewErrorBoundaryFallback from '../js/features/pdf-preview/components/pdf-preview-error-boundary-fallback'
  2. import { ScopeDecorator } from './decorators/scope'
  3. export default {
  4. title: 'Editor / PDF Preview / Error Boundary',
  5. component: PdfPreviewErrorBoundaryFallback,
  6. decorators: [ScopeDecorator],
  7. }
  8. export const PreviewErrorBoundary = () => {
  9. return <PdfPreviewErrorBoundaryFallback type="preview" />
  10. }
  11. export const PdfErrorBoundary = () => {
  12. return <PdfPreviewErrorBoundaryFallback type="pdf" />
  13. }
  14. export const LogsErrorBoundary = () => {
  15. return <PdfPreviewErrorBoundaryFallback type="logs" />
  16. }