Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
35 lines
969 B
TypeScript
35 lines
969 B
TypeScript
// Module ID: 12647
|
|
// Function ID: 12648
|
|
// Name: useGameServerFeaturedGameNames
|
|
// Dependencies: [4496, 7361, 2]
|
|
// Exports: default
|
|
|
|
// Module 12647 (useGameServerFeaturedGameNames)
|
|
import useGame from "useGame" /* 7361 */;
|
|
import GameServerConstants from "GameServerConstants" /* 4496 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
({ MINECRAFT_GAME_ID: c2, HYTALE_GAME_ID: c3 } = GameServerConstants);
|
|
const result = size.fileFinishedImporting("modules/game_server/hooks/useGameServerFeaturedGameNames.tsx");
|
|
|
|
export default function useGameServerFeaturedGameNames() {
|
|
const data = useGame.useGame(React2).data;
|
|
const data2 = useGame.useGame(React3).data;
|
|
let str;
|
|
if (data != null) {
|
|
str = data.name;
|
|
}
|
|
if (str == null) {
|
|
str = "Minecraft";
|
|
}
|
|
const obj3 = { gameName: str, gameName2: null };
|
|
let str2;
|
|
if (data2 != null) {
|
|
str2 = data2.name;
|
|
}
|
|
if (str2 == null) {
|
|
str2 = "Hytale";
|
|
}
|
|
obj3.gameName2 = str2;
|
|
return obj3;
|
|
};
|