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

21 lines
542 B
TypeScript
Raw Normal View History

// Module ID: 6905
// Function ID: 6906
// Name: SelfModUtils
// Dependencies: [1372, 2]
2026-07-20 16:05:17 +00:00
// Exports: isCurrentUserTeen
// Module 6905 (SelfModUtils)
import UserStore from "UserStore" /* 1372 */;
2026-07-23 10:11:24 +00:00
const size = fn(2);
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;
};