import type { Meta, StoryObj } from '@storybook/react'; import { ListView } from '../ListView'; import { ListItem } from '../ListItem'; import { SwitchField } from '../../SwitchField'; import React from 'react'; import { SnapshotContainer } from '../../../test-utils/SnapshotsContainer'; const meta: Meta = { title: 'Data display/ListView', component: ListView, tags: ['legacy'], }; export default meta; type Story = StoryObj; function noop() { void 0; } export const ManyChildren: Story = { args: { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore aria-label is a valid props 'aria-label': 'Payment methods activation', children: [ , , , ], }, }; export const SingleChild: Story = { args: { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore aria-label is a valid props 'aria-label': 'Payment methods activation', children: [ , ], }, }; export const Snapshot: Story = { parameters: { chromatic: { disableSnapshot: false }, }, render: () => ( ), };