decord/alpha/source/modules/self_mod/SelfModUtils.tsx

21 lines
559 B
TypeScript
Raw Permalink Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 6989
// Function ID: 6990
// Name: SelfModUtils
2026-10-09 10:00:15 +00:00
// Dependencies: [1390, 2]
2026-07-20 16:05:17 +00:00
// Exports: isCurrentUserTeen
2026-10-12 06:59:38 +00:00
// Module 6989 (SelfModUtils)
2026-10-09 10:00:15 +00:00
import UserStore from "UserStore" /* 1390 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const result = size.fileFinishedImporting("modules/self_mod/SelfModUtils.tsx");
2026-07-20 16:05:17 +00:00
export const isCurrentUserTeen = function isCurrentUserTeen() {
const currentUser = UserStore.getCurrentUser();
2026-07-20 16:05:17 +00:00
let nsfwAllowed;
2026-07-29 08:29:29 +00:00
if (currentUser != null) {
2026-07-20 16:05:17 +00:00
nsfwAllowed = currentUser.nsfwAllowed;
}
return false === nsfwAllowed;
};