import { Progress } from '@/components/ui/progress'; import { Text } from '@/components/ui/text'; import { View } from '@/components/ui/view'; import React, { useState } from 'react'; import { TouchableOpacity } from 'react-native'; export function ProgressMedia() { const [progress, setProgress] = useState(35); const [isPlaying, setIsPlaying] = useState(false); const [volume, setVolume] = useState(75); const formatTime = (percent: number) => { const totalSeconds = Math.floor((percent / 100) * 180); // 3 minute song const minutes = Math.floor(totalSeconds / 60); const seconds = totalSeconds % 60; return `${minutes}:${seconds.toString().padStart(2, '0')}`; }; return ( {/* Media Player */} Song Title Artist Name {formatTime(progress)} 3:00 setIsPlaying(!isPlaying)} > {isPlaying ? '⏸️' : '▶️'} {/* Volume Control */} 🔊 {Math.round(volume)}% ); }