2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 5192
|
|
|
|
|
// Function ID: 5193
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: useGameProfileObscured
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [1371, 5193, 504, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: default, isGameProfileObscured
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 5192 (useGameProfileObscured)
|
2026-09-05 10:56:28 +00:00
|
|
|
import initialize from "initialize" /* 504 */;
|
2026-09-12 13:45:10 +00:00
|
|
|
import utils from "utils" /* 5193 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import UserStore from "UserStore" /* 1371 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
let result = size.fileFinishedImporting("modules/game_profile/hooks/useGameProfileObscured.tsx");
|
2026-07-29 08:29:29 +00:00
|
|
|
|
|
|
|
|
export default function useGameProfileObscured(contentClassification) {
|
2026-08-24 06:08:38 +00:00
|
|
|
initialize;
|
2026-09-10 05:38:07 +00:00
|
|
|
[][0] = UserStore;
|
2026-07-29 08:29:29 +00:00
|
|
|
let result = null != contentClassification;
|
|
|
|
|
if (result) {
|
|
|
|
|
result = false === tmp4;
|
|
|
|
|
}
|
|
|
|
|
if (result) {
|
2026-09-10 05:38:07 +00:00
|
|
|
result = utils.isAgeRestrictedContentClassification(contentClassification.contentClassification);
|
|
|
|
|
const tmpResult = utils;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
};
|
|
|
|
|
export const isGameProfileObscured = function isGameProfileObscured(game, nsfwAllowed) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let result = null != game;
|
|
|
|
|
if (result) {
|
|
|
|
|
result = false === nsfwAllowed;
|
|
|
|
|
}
|
|
|
|
|
if (result) {
|
2026-09-10 05:38:07 +00:00
|
|
|
result = utils.isAgeRestrictedContentClassification(game.contentClassification);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
};
|