import { View, Text } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import type { ComponentProps } from 'react'; type Props = { icon: ComponentProps['name']; title: string; subtitle?: string; children?: React.ReactNode; }; export function EmptyState({ icon, title, subtitle, children }: Props) { return ( {title} {subtitle ? ( {subtitle} ) : null} {children ? {children} : null} ); }