import { useTheme } from '@react-navigation/native'; import { cva, type VariantProps } from 'class-variance-authority'; import type { LucideIcon } from 'lucide-react-native'; import * as React from 'react'; import { View, type ViewProps } from 'react-native'; import { cn } from '@/lib/utils'; import { Text } from '@/components/ui/text'; const alertVariants = cva( 'relative bg-background w-full rounded-lg border border-border p-4 shadow shadow-foreground/10', { variants: { variant: { default: '', destructive: 'border-destructive', }, }, defaultVariants: { variant: 'default', }, } ); const Alert = React.forwardRef< React.ElementRef, ViewProps & VariantProps & { icon: LucideIcon; iconSize?: number; iconClassName?: string; } >(({ className, variant, children, icon: Icon, iconSize = 16, iconClassName, ...props }, ref) => { const { colors } = useTheme(); return ( {children} ); }); Alert.displayName = 'Alert'; const AlertTitle = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertTitle.displayName = 'AlertTitle'; const AlertDescription = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertDescription.displayName = 'AlertDescription'; export { Alert, AlertDescription, AlertTitle };