decord/source/modules/self_mod/hooks/useUserIsTeen.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

25 lines
702 B
TypeScript

// Module ID: 8779
// Function ID: 8780
// Name: useUserIsTeen
// Dependencies: [1372, 504, 2]
// Exports: useUserIsTeen
// Module 8779 (useUserIsTeen)
import initialize from "initialize" /* 504 */;
import UserStore from "UserStore" /* 1372 */;
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;
});
};