import React from 'react'; import { View, Text, ActivityIndicator } from 'react-native'; import { useAppTheme } from '@theme'; import { getStyles } from './loadingOverlay.styles'; interface LoadingOverlayProps { visible: boolean; message?: string; } export const LoadingOverlay: React.FC = ({ visible, message = 'Loading...', }) => { const { colors } = useAppTheme(); const styles = getStyles(colors); if (!visible) return null; return ( {message ? {message} : null} ); }; export default LoadingOverlay;