import React from 'react'; import { View, Text, TouchableOpacity } from 'react-native'; import { useAppTheme } from '@theme'; import { getStyles } from './emptyState.styles'; interface EmptyStateProps { icon?: React.ReactNode; title: string; subtitle?: string; actionLabel?: string; onAction?: () => void; } export const EmptyState: React.FC = ({ icon, title, subtitle, actionLabel, onAction, }) => { const { colors } = useAppTheme(); const styles = getStyles(colors); return ( {icon && {icon}} {title} {subtitle ? {subtitle} : null} {actionLabel && onAction ? ( {actionLabel} ) : null} ); }; export default EmptyState;