import { Ionicons } from "@expo/vector-icons"; import { Text, TouchableOpacity, 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) { return ( {headline} {description} {buttonText && onButtonPress ? ( {buttonText} ) : null} ); }