+ {storageFacilities
+ .sort((a, b) => {
+ const isALaunchpad = a.type_id === 2256 || a.type_id === 2542 || a.type_id === 2543 || a.type_id === 2544 || a.type_id === 2552 || a.type_id === 2555 || a.type_id === 2556 || a.type_id === 2557;
+ const isBLaunchpad = b.type_id === 2256 || b.type_id === 2542 || b.type_id === 2543 || b.type_id === 2544 || b.type_id === 2552 || b.type_id === 2555 || b.type_id === 2556 || b.type_id === 2557;
+ return isALaunchpad === isBLaunchpad ? 0 : isALaunchpad ? -1 : 1;
+ })
+ .map((storage) => {
+ const storageInfo = getStorageInfo(storage);
+ if (!storageInfo) return null;
+
+ const isLaunchpad = storage.type_id === 2256 ||
+ storage.type_id === 2542 ||
+ storage.type_id === 2543 ||
+ storage.type_id === 2544 ||
+ storage.type_id === 2552 ||
+ storage.type_id === 2555 ||
+ storage.type_id === 2556 ||
+ storage.type_id === 2557;
+
+ const fillRate = storageInfo.fillRate;
+ const color = fillRate > 95 ? '#ff0000' : fillRate > 80 ? '#ffd700' : 'inherit';
+
+ return (
+
+
+ {isLaunchpad ? 'L' : 'S'}
+
+
+ {fillRate.toFixed(1)}%
+
+
+ );
+ })}
+
+