import type {Meta, StoryObj} from '@storybook/react-vite';

import List from './list';
import NoValueLabel from './no-value-label';

const meta = {
    title: 'Global / No value label',
    component: NoValueLabel,
    tags: ['autodocs']
} satisfies Meta<typeof NoValueLabel>;

export default meta;
type Story = StoryObj<typeof NoValueLabel>;

export const Default: Story = {
    args: {
        icon: 'single-user-block',
        children: 'No available entry'
    }
};

export const InList: Story = {
    args: {
        icon: 'single-user-block',
        children: 'No available entry'
    },
    decorators: [
        ThisStory => (
            <List hint="And a hint for the empty list" title="Here's an empty list">
                <ThisStory />
            </List>
        )
    ]
};
