decord/source/modules/self_mod/hooks/useUserIsTeen.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

25 lines
702 B
TypeScript

// Module ID: 8737
// Function ID: 8738
// Name: useUserIsTeen
// Dependencies: [1371, 504, 2]
// Exports: useUserIsTeen
// Module 8737 (useUserIsTeen)
import initialize from "initialize" /* 504 */;
import UserStore from "UserStore" /* 1371 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/self_mod/hooks/useUserIsTeen.tsx");
export const useUserIsTeen = function useUserIsTeen() {
const items = [UserStore];
return false === initialize.useStateFromStores(items, () => {
currentUser = currentUser.getCurrentUser();
let nsfwAllowed;
if (currentUser != null) {
nsfwAllowed = currentUser.nsfwAllowed;
}
return nsfwAllowed;
});
};