import Toast from './toast';
import { ComponentStory, ComponentMeta } from '@storybook/react';
export default {
    title: 'Components/Toast',
    component: Toast,
    argTypes: {
        severity: {
            options: ['success', 'warning', 'errors','info'],
            control: { type: 'radio' },
        },
    }
} as ComponentMeta<typeof Toast>


const Template: ComponentStory<typeof Toast> = (args) => <Toast {...args} />

export const ToastComponent = Template.bind({});

ToastComponent.args = {
    openToast:true,
    message:'Data Fetched Successfully',
    severity:"success",
    autoDuration:1500,
    sx:{
        backgroundColor:""
    }
};


