import { StackProps, ToastId, VStack, useToast } from '@chakra-ui/react';
import { Meta } from '@storybook/react';
import { useRef } from 'react';
import { theme } from '../../modules/theme';
import { Button } from '../Button';
import { STATUSES, STATUSES_TO_COLOR_SCHEME } from '../internal/Status';
import {
Toast,
ToastCloseButton,
ToastContent,
ToastDescription,
ToastDivider,
ToastIcon,
ToastLeftContent,
ToastRightContent,
ToastTitle,
} from '.';
export default {
title: 'Components/Molecules/Toast',
component: Toast,
} as Meta;
const Stack = (props: StackProps) => {
return ;
};
export const Default = () => {
const toast = useToast();
return (
{STATUSES.map((it) => {
return (
);
})}
);
};
export const WithClose = () => {
const toast = useToast();
const toastIdRef = useRef();
return (
);
};