import React from 'react';
import {
Button,
useToast,
VStack,
HStack,
Text,
Center,
IconButton,
CloseIcon,
Alert,
} from 'native-base';
export const Example = () => {
const toast = useToast();
const ToastDetails = [
{
title: 'Account verified',
variant: 'solid',
description: 'Thanks for signing up with us.',
isClosable: true,
},
{
title: 'Something went wrong',
variant: 'subtle',
description: 'Please create a support ticket from the support page',
},
{
title: 'Network connection restored',
variant: 'left-accent',
description:
'This is to inform you that your network connectivity is restored',
isClosable: true,
},
{
title: 'Invalid email address',
variant: 'top-accent',
description: 'Please enter a valid email address',
},
{
title: 'Invalid email address',
variant: 'outline',
description: 'Please enter a valid email address',
},
];
const ToastAlert = ({
id,
status,
variant,
title,
description,
isClosable,
...rest
}: any) => (