2026-09-11 19:12:58 +00:00
|
|
|
// Module ID: 12670
|
|
|
|
|
// Function ID: 12671
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useGameServerFeaturedGameNames
|
2026-09-11 19:12:58 +00:00
|
|
|
// Dependencies: [4497, 7382, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-11 19:12:58 +00:00
|
|
|
// Module 12670 (useGameServerFeaturedGameNames)
|
|
|
|
|
import useGame from "useGame" /* 7382 */;
|
|
|
|
|
import GameServerConstants from "GameServerConstants" /* 4497 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
({ MINECRAFT_GAME_ID: c2, HYTALE_GAME_ID: c3 } = GameServerConstants);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/game_server/hooks/useGameServerFeaturedGameNames.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useGameServerFeaturedGameNames() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const data = useGame.useGame(React2).data;
|
|
|
|
|
const data2 = useGame.useGame(React3).data;
|
2026-07-29 08:29:29 +00:00
|
|
|
let str;
|
|
|
|
|
if (data != null) {
|
|
|
|
|
str = data.name;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (str == null) {
|
|
|
|
|
str = "Minecraft";
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj3 = { gameName: str, gameName2: null };
|
2026-07-29 08:29:29 +00:00
|
|
|
let str2;
|
|
|
|
|
if (data2 != null) {
|
|
|
|
|
str2 = data2.name;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (str2 == null) {
|
|
|
|
|
str2 = "Hytale";
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
obj3.gameName2 = str2;
|
|
|
|
|
return obj3;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|