import * as AlertDialogPrimitive from '@rn-primitives/alert-dialog'; import * as React from 'react'; import { Platform, StyleSheet, View, type ViewProps } from 'react-native'; import Animated, { FadeIn, FadeOut } from 'react-native-reanimated'; import { buttonTextVariants, buttonVariants } from '@/components/ui/button'; import { cn } from '@/lib/utils'; import { TextClassContext } from '@/components/ui/text'; const AlertDialog = AlertDialogPrimitive.Root; const AlertDialogTrigger = AlertDialogPrimitive.Trigger; const AlertDialogPortal = AlertDialogPrimitive.Portal; const AlertDialogOverlayWeb = React.forwardRef< AlertDialogPrimitive.OverlayRef, AlertDialogPrimitive.OverlayProps >(({ className, ...props }, ref) => { const { open } = AlertDialogPrimitive.useRootContext(); return ( ); }); AlertDialogOverlayWeb.displayName = 'AlertDialogOverlayWeb'; const AlertDialogOverlayNative = React.forwardRef< AlertDialogPrimitive.OverlayRef, AlertDialogPrimitive.OverlayProps >(({ className, children, ...props }, ref) => { return ( {children} ); }); AlertDialogOverlayNative.displayName = 'AlertDialogOverlayNative'; const AlertDialogOverlay = Platform.select({ web: AlertDialogOverlayWeb, default: AlertDialogOverlayNative, }); const AlertDialogContent = React.forwardRef< AlertDialogPrimitive.ContentRef, AlertDialogPrimitive.ContentProps & { portalHost?: string } >(({ className, portalHost, ...props }, ref) => { const { open } = AlertDialogPrimitive.useRootContext(); return ( ); }); AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName; const AlertDialogHeader = ({ className, ...props }: ViewProps) => ( ); AlertDialogHeader.displayName = 'AlertDialogHeader'; const AlertDialogFooter = ({ className, ...props }: ViewProps) => ( ); AlertDialogFooter.displayName = 'AlertDialogFooter'; const AlertDialogTitle = React.forwardRef< AlertDialogPrimitive.TitleRef, AlertDialogPrimitive.TitleProps >(({ className, ...props }, ref) => ( )); AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName; const AlertDialogDescription = React.forwardRef< AlertDialogPrimitive.DescriptionRef, AlertDialogPrimitive.DescriptionProps >(({ className, ...props }, ref) => ( )); AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName; const AlertDialogAction = React.forwardRef< AlertDialogPrimitive.ActionRef, AlertDialogPrimitive.ActionProps >(({ className, ...props }, ref) => ( )); AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName; const AlertDialogCancel = React.forwardRef< AlertDialogPrimitive.CancelRef, AlertDialogPrimitive.CancelProps >(({ className, ...props }, ref) => ( )); AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName; export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };