+ {planetDetails.storageInfo.length === 0 &&
No storage}
+ {planetDetails.storageInfo.map((storage: StorageInfo) => {
+ const isLaunchpad = LAUNCHPAD_IDS.includes(storage.type_id);
+ const fillRate = storage.fillRate;
+ const color = fillRate > 90 ? '#ff0000' : fillRate > 80 ? '#ffa500' : fillRate > 60 ? '#ffd700' : 'inherit';
+
+ return (
+
+
+ {isLaunchpad ? 'L' : 'S'}
- )}
-
- );
- })}
-
+