import React from 'react'; import WindowFrame from '../shared/WindowFrame'; import { MinerStats, WindowState } from '../../hooks/useWindowManager'; type Props = { state: WindowState; stats: MinerStats; onClose: (id: string) => void; onMinimize: (id: string) => void; onMaximize: (id: string) => void; onDragStart: (id: string, event: React.MouseEvent) => void; onFocus: (id: string) => void; }; export default function MinerWindow({ state, stats, ...handlers }: Props) { return (

Mining Active

Contributing work to RoadChain network

Hashrate{stats.hashRate}
Accepted Shares{stats.sharesAccepted.toLocaleString()}
Pool{stats.poolName}
); }