import { Meta } from '@storybook/react';
import React, { useEffect } from 'react';
import { Button } from '../../components/Button';
import { PulsarToastContainer } from './PulsarToastContainer';
import { createToast } from './manage-toast';
const meta: Meta = {
title: 'Toasts',
};
export default meta;
const Common = () => {
useEffect(() => {
createToast({ content: 'A toast', type: 'default' });
createToast({ content: 'A toast', type: 'success' });
createToast({ content: 'A toast', type: 'warning' });
createToast({ content: 'A toast', type: 'danger' });
createToast({ content: 'A toast', type: 'info' });
}, []);
return (
<>
>
);
};
export const Light = () => ;
Light.parameters = { theme: 'light' };
export const Dark = () => ;
Dark.parameters = { theme: 'dark' };