decord/source/modules/self_mod/hooks/useUserIsTeen.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

25 lines
702 B
TypeScript

// Module ID: 8714
// Function ID: 8715
// Name: useUserIsTeen
// Dependencies: [1371, 504, 2]
// Exports: useUserIsTeen
// Module 8714 (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;
});
};