Loading...
;
+ }
+
+ return (
+
+
+
Device Pairing
+
+
+
+ {error && (
+
+ {error}
+
+
+ )}
+
+ {pairingCode && (
+
+
Pairing Code
+
+ {pairingCode}
+
+
+ Enter this code on the new device to complete pairing.
+
+
+ )}
+
+
+
+
Paired Devices ({devices.length})
+
+ {devices.length === 0 ? (
+
+ No devices paired yet. Click "Pair New Device" to get started.
+
+ ) : (
+
+
+
+ | Name |
+ Type |
+ Paired |
+ Last Seen |
+ IP |
+ Actions |
+
+
+
+ {devices.map(device => (
+
+ | {device.name || 'Unnamed'} |
+ {device.device_type || 'Unknown'} |
+
+ {new Date(device.paired_at).toLocaleDateString()}
+ |
+
+ {new Date(device.last_seen).toLocaleString()}
+ |
+ {device.ip_address || '-'} |
+
+
+ |
+
+ ))}
+
+
+ )}
+
+
+ );
+}