import React from 'react'; import { Flex, Typography, Divider, Layout, Button, Row, Col, Image } from 'antd'; const { Title, Text } = Typography; type LoadingMeterProps = { title: string, progress: number, total: number } const LoadingMeter: React.FC = ({ title = "Title", progress = 0, total = 0 }) => { const barProgress = (progress * 100) / total; if (progress > total) return Progress is more than total return ( {/* Header Row */} {`${title}: `} {`${progress}/${total}`} {/* Progress Bar */}
); }; export default LoadingMeter;