- setSelectedItem({ ...item, sectionType: activeSection })
- }
- >
-
-
{item.displayName}
-
{item.id}
-
- {/* Секція луту без картинок, лише текст або іконка коробки */}
- {activeSection === "hostiles" &&
- item.loot &&
- item.loot.length > 0 && (
-
- {item.loot.map((lootEntry, idx) => {
- const lootData = GameDataManager.getItem(lootEntry.id);
- return (
-
-
-
- {lootData?.displayName ||
- lootEntry.id.split(":").pop()}
-
-
- );
- })}
+
+
+ {displayList.map((item) => (
+
+ setSelectedItem({ ...item, sectionType: activeSection })
+ }
+ >
+
+ {item.texture ? (
+

+ ) : (
+
+ {item.displayName?.[0] || "?"}
)}
+
+
+
+
{item.displayName}
+
{item.id}
+
+ {activeSection === "hostiles" &&
+ item.loot &&
+ item.loot.length > 0 && (
+
+ {item.loot.map((lootEntry, idx) => {
+ const lootData = GameDataManager.getItem(
+ lootEntry.id,
+ );
+ return (
+
+
+
+ {lootData?.displayName ||
+ lootEntry.id.split(":").pop()}
+
+
+ );
+ })}
+
+ )}
+
-
- ))}
+ ))}
+
-
{selectedItem && (