import type { Meta, StoryObj } from '@storybook/react-vite'; import { Notification } from '../../src/ui/Notification/Notification'; const meta: Meta = { title: 'UI/Notification', component: Notification, parameters: { layout: 'padded' }, tags: ['autodocs'], argTypes: { variant: { control: 'select', options: ['info', 'success', 'error', 'warning', 'note'] }, }, }; export default meta; type Story = StoryObj; export const Info: Story = { args: { variant: 'info', title: 'Traces are off', children: 'Enable them per run in the run modal.', }, }; export const Success: Story = { args: { variant: 'success', children: 'Scenario imported.' } }; export const Error: Story = { args: { variant: 'error', title: 'Run failed', children: 'Step 2 timed out after 60s.' }, }; export const Warning: Story = { args: { variant: 'warning', children: 'The environment of this run no longer exists.' }, }; export const Note: Story = { args: { variant: 'note', children: 'Pinned snippet version: v3.' } };