import React from 'react'; import { createThemedStyles, themedColor } from '../../theme'; import {ActivityIndicator, Modal, Pressable, Text, View} from 'react-native'; export function AttachmentPickerStatusModal({ isError, message, onClose, title, }: { isError?: boolean; message: string; onClose?: () => void; title: string; }) { return ( {isError ? null : } {title} {message} {onClose ? ( {isError ? 'Close' : 'Cancel'} ) : null} ); } const styles = createThemedStyles({ backdrop: { alignItems: 'center', backgroundColor: 'rgba(0, 0, 0, 0.62)', flex: 1, justifyContent: 'flex-end', padding: 16, }, closeButton: { alignItems: 'center', borderRadius: 16, height: 48, justifyContent: 'center', marginTop: 10, }, closeText: { color: '#FFFFFF', fontSize: 16, fontWeight: '700', }, error: { color: '#FF6B6B', }, loader: { marginBottom: 10, }, message: { color: '#A1A1AA', fontSize: 13, lineHeight: 18, marginTop: 8, textAlign: 'center', }, sheet: { backgroundColor: '#050505', borderColor: '#2A2A2D', borderRadius: 28, borderWidth: 1, padding: 16, width: '100%', }, title: { color: '#FFFFFF', fontSize: 20, fontWeight: '800', textAlign: 'center', }, });