/* eslint-disable react/no-array-index-key */ import { Typography } from '@mui/material'; import type { Meta, StoryObj } from '@storybook/react'; import { SelectField } from '../..'; import { ItemComposition } from '.'; const meta: Meta = { component: ItemComposition }; export default meta; type Story = StoryObj; const stub = (): void => undefined; const items = [0, 1, 2, 3, 4]; export const Default: Story = { args: { children: items.map((item) => ( Item 1 Item 2 )), labelAdd: 'Add', onAddItem: stub } }; export const Empty: Story = { args: { children: [], labelAdd: 'Add', onAddItem: stub } }; const options = [ { id: 1, name: 'Test select 1' }, { id: 2, name: 'Test select 2' }, { id: 3, name: 'Test select 3' } ]; export const WithSelectInputs: Story = { args: { children: items.map((i) => ( )), labelAdd: 'Add', onAddItem: stub } }; export const WithLinkedItems: Story = { args: { children: items.map((i) => ( Item 1 Item 2 )), displayItemsAsLinked: true, labelAdd: 'Add', onAddItem: stub } };