import React from 'react'; import { View } from 'react-native'; import UploaderProgressBar from './progress-bar'; interface UploaderProgressProps { imageUrl: string; uploadedCount: number; totalCount: number; } const UploaderProgress: React.FC = ({ imageUrl, uploadedCount, totalCount }) => { // This is now a 'dumb' component. It only displays the progress based on props. // All logic for fetching and state management is handled by the parent component (MemoList). if (totalCount === 0) { // Don't render anything if there's no session or tasks. // The parent component's logic (`uploadSessionStartTime && ...`) already handles this, // but this is an extra safeguard. return null; } return ( ); }; export default React.memo(UploaderProgress);