51 lines
2 KiB
TypeScript
51 lines
2 KiB
TypeScript
// Module ID: 9326
|
|
// Function ID: 9327
|
|
// Name: getOpenCriticTierText
|
|
// Dependencies: [9327, 1236, 9328, 9329, 9330, 9331, 2]
|
|
// Exports: getOpenCriticCircleRatingColor, getOpenCriticTierImage, getOpenCriticTierText
|
|
|
|
// Module 9326 (getOpenCriticTierText)
|
|
const result = require("metadata").fileFinishedImporting("modules/game_profile/hooks/useGameProfileOpenCritic.tsx");
|
|
|
|
export const getOpenCriticTierText = function getOpenCriticTierText(tier) {
|
|
if (require(9327) /* OpenCriticTier */.OpenCriticTier.MIGHTY === tier) {
|
|
const intl4 = tmp(1236).intl;
|
|
return intl4.string(tmp(1236).t.aZej2g);
|
|
} else if (tmp(9327).OpenCriticTier.STRONG === tier) {
|
|
const intl3 = tmp(1236).intl;
|
|
return intl3.string(tmp(1236).t.MLxnSg);
|
|
} else if (tmp(9327).OpenCriticTier.FAIR === tier) {
|
|
const intl2 = tmp(1236).intl;
|
|
return intl2.string(tmp(1236).t["3f19KA"]);
|
|
} else if (tmp(9327).OpenCriticTier.WEAK === tier) {
|
|
const intl = tmp(1236).intl;
|
|
return intl.string(tmp(1236).t.jtVgSh);
|
|
}
|
|
};
|
|
export const getOpenCriticTierImage = function getOpenCriticTierImage(tier) {
|
|
if (require(9327) /* OpenCriticTier */.OpenCriticTier.MIGHTY === tier) {
|
|
return importDefault(9328);
|
|
} else if (tmp(9327).OpenCriticTier.STRONG === tier) {
|
|
return importDefault(9329);
|
|
} else if (tmp(9327).OpenCriticTier.FAIR === tier) {
|
|
return importDefault(9330);
|
|
} else if (tmp(9327).OpenCriticTier.WEAK === tier) {
|
|
return importDefault(9331);
|
|
}
|
|
};
|
|
export const getOpenCriticCircleRatingColor = function getOpenCriticCircleRatingColor(tier) {
|
|
let foregroundColor = "#fc430a";
|
|
if (require(9327) /* OpenCriticTier */.OpenCriticTier.MIGHTY !== tier) {
|
|
foregroundColor = "#9e00b4";
|
|
if (tmp(9327).OpenCriticTier.STRONG !== tier) {
|
|
foregroundColor = "#4aa1ce";
|
|
if (tmp(9327).OpenCriticTier.FAIR !== tier) {
|
|
foregroundColor = "";
|
|
if (tmp(9327).OpenCriticTier.WEAK === tier) {
|
|
foregroundColor = "#80b06a";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return { foregroundColor, backgroundColor: "#2e2e2e" };
|
|
};
|