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 (
Ultra-Fast Dogecoin Mining Simulator
Mining Stats
DOGE Mined