import { Link, type Href } from 'expo-router'; import { Pressable, Text, View } from 'react-native'; import { UI } from '@/constants/uiTheme'; export type EmptyStateProps = { title: string; description?: string; actionLabel?: string; actionHref?: Href; onAction?: () => void; }; export function EmptyState({ title, description, actionLabel, actionHref, onAction }: EmptyStateProps) { const actionNode = actionLabel && actionHref != null ? ( {actionLabel} ) : actionLabel && onAction ? ( {actionLabel} ) : null; return ( {title} {description ? ( {description} ) : null} {actionNode} ); }