import Svg, { Circle } from 'react-native-svg' import { Text, Block } from '@/@share/components' import { cn } from '@/utils/cn' type ProgressProps = { progress: number className?: string progressClassName?: string } export function ProgressLine({ progress, className, progressClassName }: ProgressProps) { return ( 100 ? 100 : progress}%` }} /> ) } type ProgressRingProps = { radius: number strokeColor: string strokeWidth: number textColor: string progress: number minWidth?: number } export function ProgressRing({ radius, strokeColor, strokeWidth, textColor, progress, minWidth = 66 }: ProgressRingProps) { // Calculate the progress for the circular indicator const circumference = 2 * Math.PI * radius const strokeDashoffset = circumference - (progress / 100) * circumference return ( {/* Background gray ring */} {/* Progress ring */} {/* Progress text */} {progress.toFixed(0)}% ) } export default ProgressRing