import { Meta, StoryObj } from '@storybook/react'; import useToast from '@/components/use-toast.tsx'; import Button from '@/components/Button.tsx'; import { Toaster } from 'react-hot-toast'; import { Fragment } from 'react'; import ToastBody from '@/components/toast-body.tsx'; const meta: Meta = { title: 'Toast', component: ToastBody, tags: ['autodocs'], }; export default meta; type Story = StoryObj; export const Default: Story = { args: { title: 'Show Success', type: 'success', }, render: () => { const toast = useToast(); return ( ); }, }; export const Error: Story = { args: { title: 'Show Error', type: 'error', }, render: () => { const toast = useToast(); return ( ); }, }; export const Description: Story = { args: { title: 'Show Error', type: 'error', subtitle: 'This is a descirpiton', }, render: () => { const toast = useToast(); return ( ); }, };