import React from 'react'; import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; import { Colors } from '../../constants/Colors'; interface EmptyStateProps { title: string; message?: string; icon?: string; actionLabel?: string; onAction?: () => void; } export default function EmptyState({ title, message, icon, actionLabel, onAction }: EmptyStateProps) { return ( {icon && {icon}} {title} {message && {message}} {actionLabel && onAction && ( {actionLabel} )} ); } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', padding: 40, }, icon: { fontSize: 64, marginBottom: 16, }, title: { fontSize: 20, fontWeight: '600', color: Colors.text, marginBottom: 8, textAlign: 'center', }, message: { fontSize: 14, color: Colors.textSecondary, textAlign: 'center', }, actionButton: { marginTop: 16, paddingHorizontal: 24, paddingVertical: 12, backgroundColor: Colors.buttonPrimary, borderRadius: 6, }, actionLabel: { color: Colors.text, fontSize: 14, fontWeight: '600', }, });