import type { Meta, StoryObj } from '@storybook/react'; import { Alert, AlertTitle, AlertDescription } from './alert'; import { Terminal, AlertCircle, Info, CheckCircle2, AlertTriangle } from 'lucide-react'; import React from 'react'; const meta: Meta = { title: 'UI/Alert', component: Alert, render: args => , argTypes: { variant: { control: 'select', options: ['default', 'info', 'success', 'warning', 'destructive'], }, }, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { variant: 'default', icon: , }, render: args => ( Heads up! You can add components to your app using the cli. ), }; export const Informational: Story = { args: { variant: 'info', }, render: args => ( Note This data is refreshed every 24 hours. Last updated: today at 08:00. ), }; export const Success: Story = { args: { variant: 'success', }, render: args => ( Success Your profile has been updated successfully. ), }; export const Warning: Story = { args: { variant: 'warning', }, render: args => ( Attention Required Your subscription expires in 3 days. Renew to avoid service interruption. ), }; export const Destructive: Story = { args: { variant: 'destructive', }, render: args => ( Error Failed to save changes. Please try again or contact support. ), };