import type { Meta, StoryObj } from '@storybook/react'; import { LazyErrorFallback } from './LazyErrorFallback'; const meta: Meta = { title: 'Components/UI/LazyComponent/LazyErrorFallback', component: LazyErrorFallback, tags: ['autodocs'], parameters: { layout: 'centered' }, decorators: [ (Story) => (
), ], }; export default meta; type Story = StoryObj; export const Default: Story = { args: { pageName: 'Dashboard', error: new Error('Failed to fetch chunk.'), }, }; export const WithRetry: Story = { args: { pageName: 'Settings', error: new Error('Network error.'), onRetry: () => {}, }, }; export const NoError: Story = { args: { pageName: 'Profile', }, };