import { Ionicons } from "@expo/vector-icons"; import { Text, TouchableOpacity, useColorScheme, View } from "react-native"; type IoniconName = keyof typeof Ionicons.glyphMap; interface EmptyScreenProps { icon: IoniconName; headline: string; description: string; buttonText?: string; onButtonPress?: () => void; className?: string; } export function EmptyScreen({ icon, headline, description, buttonText, onButtonPress, className, }: EmptyScreenProps) { const colorScheme = useColorScheme(); const isDark = colorScheme === "dark"; const colors = { text: isDark ? "#FFFFFF" : "#111827", textSecondary: isDark ? "#A3A3A3" : "#6B7280", background: isDark ? "#171717" : "#FFFFFF", backgroundSecondary: isDark ? "#2C2C2E" : "#F3F4F6", border: isDark ? "#4D4D4D" : "#D1D5DB", icon: isDark ? "#E5E5EA" : "#374151", buttonBg: isDark ? "#FFFFFF" : "#111827", buttonText: isDark ? "#000000" : "#FFFFFF", }; return ( {headline} {description} {buttonText && onButtonPress ? ( {buttonText} ) : null} ); }