import React from 'react'; import type { Door } from '../types'; interface ControlPanelProps { onAction: (action: unknown, label: string) => void; onReset: (difficulty: string) => void; onResetDoors: () => void; onSetup: () => void; doors: Door[]; isAutoWait: boolean; toggleAutoWait: () => void; isPolling: boolean; togglePolling: () => void; status: string; isError: boolean; } const ControlPanel: React.FC = ({ onAction, onSetup, doors, isAutoWait, toggleAutoWait, isPolling, togglePolling, status, isError, }) => { const mv = (dir: string) => onAction({ action: 'move', direction: dir.toLowerCase() }, `MOVE ${dir.toUpperCase()}`); return (
Tactical Controls
{/* D-Pad */}
{/* Row 1 */}
{/* Row 2 */} {/* Row 3 */}
{/* Secondary actions */}
{/* Reboot */}
{/* Status line */}
{status}
{/* Doors */} {doors.length > 0 && (
Proximity Doors
{doors.map(d => ( ))}
)}
); }; export default ControlPanel;