+
+
+ {/* Группа: Прямые gateway */}
+ {suggestions.filter(s => s.type === 'gateway').length > 0 && (
+ <>
+
Прямые gateway
+ {suggestions
+ .filter(s => s.type === 'gateway')
+ .map((s, idx) => {
+ const globalIdx = suggestions.findIndex(item => item.value === s.value);
+ return (
+
+ );
+ })}
+ >
+ )}
+
+ {/* Группа: Интерфейсы */}
+ {suggestions.filter(s => s.type === 'interface').length > 0 && (
+ <>
+
Интерфейсы (по remote IP)
+ {suggestions
+ .filter(s => s.type === 'interface')
+ .map((s, idx) => {
+ const globalIdx = suggestions.findIndex(item => item.value === s.value);
+ return (
+
+ );
+ })}
+ >
+ )}
+