import React from 'react'; import { Zap, HardDriveUpload, HardDriveDownload, Activity, CheckCircle, AlertCircle, XCircle } from 'lucide-react'; import { QuickTestConfig } from '../types'; interface Props { onQuickRead: () => void; onQuickWrite: (data: string) => void; onCancel: () => void; writeInput: string; onWriteInputChange: (value: string) => void; result: string | null; isPending: boolean; isScanning: boolean; config: QuickTestConfig; } export const QuickTestPanel: React.FC = ({ onQuickRead, onQuickWrite, onCancel, writeInput, onWriteInputChange, result, isPending, isScanning, config }) => { return (

Quick Test Mode

Automatically detects the first tag in the field and performs a Read or Write operation.
Target: EPC Bank, Start Address: 2
Length: {config.length} Words, Format: {config.format.toUpperCase()}

{/* Read Card */}

Auto Read

{isPending ? (
Scanning & Reading...
) : ( result ? ( {result} ) : ( No Data Read ) )}
{isPending ? ( ) : ( )}
{/* Write Card */}

Auto Write

onWriteInputChange(e.target.value)} placeholder={`${config.format === 'hex' ? 'Hex Data (e.g. A1 B2...)' : 'ASCII String'}`} className="w-full bg-slate-50 border border-slate-300 text-center text-lg rounded-xl p-4 mb-6 font-mono focus:ring-2 focus:ring-purple-500 outline-none" /> {isPending ? ( ) : ( )}
{isScanning && !isPending && (
Background scanning is active in Inventory...
)}
); };