import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; interface ErrorStateProps { message?: string; onRetry?: () => void; } export function ErrorState({ message = 'Something went wrong', onRetry }: ErrorStateProps) { return ( Oops! {message} {onRetry && ( Try Again )} ); } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', padding: 24, }, title: { fontSize: 20, fontWeight: 'bold', color: '#333333', marginBottom: 8, }, message: { fontSize: 16, color: '#666666', textAlign: 'center', marginBottom: 24, }, button: { backgroundColor: '#007AFF', paddingHorizontal: 24, paddingVertical: 12, borderRadius: 8, }, buttonText: { color: '#FFFFFF', fontSize: 16, fontWeight: '600', }, });