35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
// Module ID: 8419
|
|
// Function ID: 67259
|
|
// Name: isGameProfileObscured
|
|
// Dependencies: [1850, 7966, 566, 2]
|
|
// Exports: default
|
|
|
|
// Module 8419 (isGameProfileObscured)
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
const require = arg1;
|
|
function isGameProfileObscured(game, nsfwAllowed) {
|
|
let result = null != game;
|
|
if (result) {
|
|
result = false === nsfwAllowed;
|
|
}
|
|
if (result) {
|
|
result = require(7966) /* isAgeRestrictedContentClassification */.isAgeRestrictedContentClassification(game.contentClassification);
|
|
const obj = require(7966) /* isAgeRestrictedContentClassification */;
|
|
}
|
|
return result;
|
|
}
|
|
let result = require("initialize").fileFinishedImporting("modules/game_profile/hooks/useGameProfileObscured.tsx");
|
|
|
|
export default function useGameProfileObscured(game) {
|
|
const items = [_isNativeReflectConstruct];
|
|
return isGameProfileObscured(game, require(566) /* initialize */.useStateFromStores(items, () => {
|
|
const currentUser = outer1_2.getCurrentUser();
|
|
let nsfwAllowed;
|
|
if (null != currentUser) {
|
|
nsfwAllowed = currentUser.nsfwAllowed;
|
|
}
|
|
return nsfwAllowed;
|
|
}));
|
|
};
|
|
export { isGameProfileObscured };
|