diff --git a/src/components/ToastMessage.tsx b/src/components/ToastMessage.tsx new file mode 100644 index 0000000..58e3228 --- /dev/null +++ b/src/components/ToastMessage.tsx @@ -0,0 +1,41 @@ +import { Icon, Pressable, Toast, ToastDescription, ToastTitle, VStack } from '@gluestack-ui/themed'; +import { X } from 'lucide-react-native'; + +type ToastMessageProps = { + id: string; + title: string; + description?: string; + action?: 'error' | 'success'; + onClose: () => void; +}; + +export function ToastMessage({ + id, + title, + description, + action = 'success', + onClose, +}: ToastMessageProps) { + return ( + + + + + + + + {title} + + + {description && ( + + {description} + + )} + + + ); +}