import { useState, useEffect } from 'react'; import { Timer, Cpu, Activity, Power, Wallet, ArrowUpRight } from 'lucide-react'; export default function DogecoinMiner() { const [hashRate, setHashRate] = useState(0); const [dogeMined, setDogeMined] = useState(0); const [isRunning, setIsRunning] = useState(false); const [cpuUsage, setCpuUsage] = useState(0); const [walletAddress, setWalletAddress] = useState(''); const [withdrawAmount, setWithdrawAmount] = useState(''); const [showWithdrawModal, setShowWithdrawModal] = useState(false); useEffect(() => { let interval; if (isRunning) { interval = setInterval(() => { setDogeMined(prev => prev + 0.00001); setHashRate(Math.random() * (1000 - 800) + 800); setCpuUsage(Math.random() * (30 - 10) + 10); }, 50); // Faster mining rate } return () => clearInterval(interval); }, [isRunning]); const handleWithdraw = (e) => { e.preventDefault(); alert('This is a simulation. In a real system, this would transfer DOGE to your Trust Wallet.'); setShowWithdrawModal(false); }; return (

🐕 Turbo Dogecoin Miner v1.0

Ultra-Fast Dogecoin Mining Simulator

Doge Mining Stats

Hash Rate
{hashRate.toFixed(2)} MH/s
Doge DOGE Mined
{dogeMined.toFixed(5)} DOGE

Mining Activity

{isRunning ? (
) : ( Mining stopped )}
{showWithdrawModal && (

Withdraw DOGE

setWalletAddress(e.target.value)} placeholder="Enter your Trust Wallet address" className="w-full bg-gray-700 rounded-lg p-3 text-white" required />
setWithdrawAmount(e.target.value)} max={dogeMined} placeholder="Enter amount to withdraw" className="w-full bg-gray-700 rounded-lg p-3 text-white" required />
)}

System Performance

); }