- {([
- { id: 'usb', icon:
, label: 'USB' },
- { id: 'network', icon:
, label: 'Сеть (TCP)' },
- { id: 'com', icon:
, label: 'COM-порт' },
- ] as const).map(c => (
-
- ))}
+ {type !== 'netup' && (
+
+
+
+ {([
+ { id: 'usb', icon: , label: 'USB' },
+ { id: 'network', icon: , label: 'Сеть (TCP)' },
+ { id: 'com', icon: , label: 'COM-порт' },
+ ] as const).map(c => (
+
+ ))}
+
-
@@ -341,7 +349,7 @@ function DeviceForm({
value={networkHost}
onChange={e => setNetworkHost(e.target.value)}
className="w-full input text-sm font-mono"
- placeholder="192.168.1.50"
+ placeholder={type === 'netup' ? '172.16.0.12' : '192.168.1.50'}
/>
@@ -350,7 +358,7 @@ function DeviceForm({
value={networkPort}
onChange={e => setNetworkPort(e.target.value)}
className="w-full input text-sm font-mono"
- placeholder="9100"
+ placeholder={type === 'netup' ? '8880' : '9100'}
/>