import React from 'react'; import { View, Text, Modal, Image, TouchableOpacity, Share } from 'react-native'; import { X, Share2, Download } from 'lucide-react-native'; interface PreviewModalProps { visible: boolean; onClose: () => void; photoUri: string | null; recipeName: string; } export default function PreviewModal({ visible, onClose, photoUri, recipeName, }: PreviewModalProps) { const handleShare = async () => { if (!photoUri) return; try { await Share.share({ url: photoUri, message: `Captured with CamRecipe Pro - Preset: ${recipeName}`, }); } catch (error) { console.error('Sharing failed:', error); } }; return ( {/* Top bar */} PRESET: {recipeName.toUpperCase()} {/* Image display */} {photoUri ? ( ) : ( NO IMAGE CAPTURED )} {/* Bottom bar */} SHARE DONE ); }