import type { Meta, StoryObj } from '@storybook/react-vite'; import { Switch } from 'antd'; import { BellOutlined } from '@ant-design/icons'; import { NotificationCard } from './NotificationCard'; const meta = { title: 'UI/Notifications/NotificationCard', component: NotificationCard, tags: ['autodocs'], parameters: { layout: 'padded', docs: { description: { component: 'Small outlined card that groups a notification channel — an icon and title in the header, a control in the top-right `extra` slot (typically a toggle), and the channel settings as its body.', }, }, }, argTypes: { icon: { description: 'Leading icon shown before the title.' }, title: { description: 'Channel name shown in the header.' }, extra: { description: 'Top-right slot, typically an enable/disable Switch.' }, children: { description: 'Card body — the channel settings.' }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { icon: , title: 'Telegram', extra: , children: Push a message to the configured chat when an event fires., }, }; export const Disabled: Story = { args: { icon: , title: 'Email', extra: , children: Email delivery is turned off for this channel., }, };