import React from 'react'; const DeviceCard = ({ device, onAction }) => { const getDeviceIcon = (type) => { switch (type) { case 'iPhone': return ( ); case 'iPad': return ( ); case 'iPod': return ( ); case 'iPod Touch': return ( ); case 'iPod Nano': return ( ); default: return ( ); } }; const getDeviceColor = (type) => { if (type.includes('iPhone')) return 'border-blue-500 shadow-blue-200'; if (type.includes('iPad')) return 'border-gray-400 shadow-gray-200'; if (type.includes('iPod')) return 'border-purple-500 shadow-purple-200'; return 'border-gray-300 shadow-gray-200'; }; const getDeviceStatus = (status) => { switch (status) { case 'connected': return Connected; case 'charging': return Charging; case 'syncing': return Syncing; case 'paused': return Paused; default: return Unknown; } }; return (
{getDeviceIcon(device.type)}

{device.name}

{device.serialNumber}

Generated: {device.generation || 'Unknown'} • Connected: {device.connectionTime}
{getDeviceStatus(device.status)} {device.battery && (
{device.battery}%
)}
{device.actions?.map((action, index) => ( ))}
Model {device.model || 'Unknown'}
Firmware {device.firmware || 'Unknown'}
Connection Type Lightning
Connection Time {device.connectionTime}
); };