Files
discord-decomp/modules/game_profile/hooks/useGameProfileOpenCritic.tsx
T
2026-11-01 12:12:55 +02:00

42 lines
1.3 KiB
TypeScript

// Metro module 8524 (f8525).
import { OpenCriticTier } from "../../../_bundle/Module8525";
import { intl, t } from "../../../intl/index.native";
import Module8526 from "../../../_bundle/Module8526";
import Module8527 from "../../../_bundle/Module8527";
import Module8528 from "../../../_bundle/Module8528";
import Module8529 from "../../../_bundle/Module8529";
export function getOpenCriticTierText(a0) {
if (OpenCriticTier.MIGHTY === a0) {
return intl.string(t.aZej2g);
}
if (OpenCriticTier.STRONG === a0) {
return intl.string(t.MLxnSg);
}
if (OpenCriticTier.FAIR === a0) {
return intl.string(t["3f19KA"]);
}
if (OpenCriticTier.WEAK === a0) {
return intl.string(t.jtVgSh);
}
}
export function getOpenCriticTierImage(a0) {
if (OpenCriticTier.MIGHTY === a0) {
return Module8526;
}
if (OpenCriticTier.STRONG === a0) {
return Module8527;
}
if (OpenCriticTier.FAIR === a0) {
return Module8528;
}
if (OpenCriticTier.WEAK === a0) {
return Module8529;
}
}
export function getOpenCriticCircleRatingColor(a0) {
return {
foregroundColor: OpenCriticTier.MIGHTY !== a0 ? OpenCriticTier.STRONG !== a0 ? OpenCriticTier.FAIR !== a0 ? OpenCriticTier.WEAK === a0 ? "#80b06a" : "" : "#4aa1ce" : "#9e00b4" : "#fc430a",
backgroundColor: "#2e2e2e"
};
}