import React from 'react'; import { Toast, VStack, ToastTitle, ToastDescription, Pressable, Icon, CloseIcon } from '@gluestack-ui/themed'; interface IToast { id: string; title: string; status?: any; description?: string; isClosable?: boolean; toast?: any; variant?: any; } // variants: // accent, // solid, // outline export const ToastAlert = ({ id, status = 'info', title = '', description = '', variant = 'solid', isClosable, toast = null, }: IToast) => { const toastId = 'toast-' + id; const actionType = status || 'info'; return ( {title} {description && {description}} {isClosable && toast ? ( toast?.close(id)}> ) : null} ); };