loading.stories.tsx 556 B

1234567891011121314151617181920212223
  1. import type { Meta, StoryObj } from '@storybook/react'
  2. import { Loading } from '@/features/ide-react/components/loading'
  3. import { EditorProviders } from '../../../test/frontend/helpers/editor-providers'
  4. const meta: Meta<typeof Loading> = {
  5. title: 'Loading Page / Loading',
  6. component: Loading,
  7. argTypes: {
  8. setLoaded: { action: 'setLoaded' },
  9. },
  10. }
  11. export default meta
  12. type Story = StoryObj<typeof Loading>
  13. export const LoadingPage: Story = {
  14. render: args => (
  15. <EditorProviders>
  16. <Loading {...args} />
  17. </EditorProviders>
  18. ),
  19. }