import type { Meta, StoryObj } from '@storybook/react'; import { InfoCard } from './InfoCard'; import { BellOutlined } from '@ant-design/icons'; import { faker } from '@faker-js/faker'; const meta: Meta = { title: 'Base/InfoCard', component: InfoCard, tags: ['autodocs'], args: { title: faker.lorem.sentence(), description: faker.lorem.paragraph(), icon: , onClick: () => {} }, argTypes: { variant: { control: 'select', options: ['default', 'gray', 'ghost'] }, size: { control: 'select', options: ['default'] }, iconPosition: { control: 'select', options: ['top', 'center', 'bottom', 'absolute-top'] }, title: { control: 'text' }, description: { control: 'text' }, selected: { control: 'boolean' } } }; export default meta; type Story = StoryObj; export const Default: Story = { args: { title: 'Notifications', description: 'You have 3 unread messages', icon: , iconPosition: 'center' } }; export const TopIcon: Story = { args: { title: 'System Status', description: 'All systems are operational', icon: , iconPosition: 'top' } }; export const BottomIcon: Story = { args: { title: 'Updates Available', description: 'New version 2.0 is ready to install', icon: , iconPosition: 'bottom' } }; export const AbsoluteTopIcon: Story = { args: { title: 'Important Notice', description: 'Please review your account settings', icon: , iconPosition: 'absolute-top' } }; export const NoIcon: Story = { args: { title: 'Simple Card', description: 'A card without an icon', icon: null } };