import { CheckCircle2 } from '@tamagui/lucide-icons-2' import { Toast, toast, useToasts } from '@tamagui/toast/v2' import { Button, XStack, YStack } from 'tamagui' /** * IMPORTANT NOTE: if you're copy-pasting this demo into your code, make sure to add the Toast wrapper as well. */ export const ToastDuplicateDemo = () => { return ( ) } const ToastList = () => { const { toasts } = useToasts() return ( <> {toasts.map((t, index) => ( {typeof t.title === 'function' ? t.title() : t.title} {t.description && ( {typeof t.description === 'function' ? t.description() : t.description} )} ))} ) }