import React from 'react'; import { View, Text, StyleSheet, useColorScheme } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import { Colors } from '../constants/Colors'; interface EmptyStateProps { icon?: keyof typeof Ionicons.glyphMap; title: string; message?: string; } export function EmptyState({ icon = 'cube-outline', title, message, }: EmptyStateProps) { const colorScheme = useColorScheme() ?? 'light'; const colors = Colors[colorScheme]; return ( {title} {message && ( {message} )} ); } const styles = StyleSheet.create({ container: { flex: 1, alignItems: 'center', justifyContent: 'center', paddingHorizontal: 32, paddingVertical: 64, }, title: { fontSize: 18, fontWeight: '600', marginTop: 16, textAlign: 'center', }, message: { fontSize: 14, marginTop: 8, textAlign: 'center', lineHeight: 20, }, });