decord/source/modules/parent_tools/native/FamilyCenterParentalConsentNotice.tsx

62 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 13839
// Function ID: 106091
2026-07-20 16:05:17 +00:00
// Name: FamilyCenterParentalConsentNotice
2026-07-27 11:26:19 +00:00
// Dependencies: [31, 33, 4131, 689, 13831, 13832, 3828, 4127, 13840, 1212, 2199, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 13839 (FamilyCenterParentalConsentNotice)
2026-07-23 10:11:24 +00:00
import result from "result";
import { jsx } from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let require = arg1;
_createForOfIteratorHelperLoose = {};
_createForOfIteratorHelperLoose = { marginTop: require("_createForOfIteratorHelperLoose").space.PX_16 };
_createForOfIteratorHelperLoose.container = _createForOfIteratorHelperLoose;
_createForOfIteratorHelperLoose.link = { textDecorationLine: "underline" };
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
const result = require("_createForOfIteratorHelperLoose").fileFinishedImporting("modules/parent_tools/native/FamilyCenterParentalConsentNotice.tsx");
2026-07-20 16:05:17 +00:00
export default function FamilyCenterParentalConsentNotice() {
function learnMoreHook(children) {
2026-07-23 10:11:24 +00:00
const obj = { variant: "text-sm/medium", color: "text-strong", style: tmp.link, accessibilityRole: "link", onPress: closure_1, children };
return outer1_4(tmp(outer1_2[7]).Text, obj, arg1);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const tmp = _createForOfIteratorHelperLoose();
const require = tmp;
2026-07-27 11:26:19 +00:00
let obj = require(13831) /* useIsParentalConsentBannerActive */;
2026-07-20 16:05:17 +00:00
const isParentalConsentBannerActive = obj.useIsParentalConsentBannerActive();
2026-07-27 11:26:19 +00:00
let obj1 = require(13832) /* useParentalConsentWarning */;
2026-07-20 16:05:17 +00:00
const parentalConsentWarning = obj1.useParentalConsentWarning();
let daysRemaining;
if (null != parentalConsentWarning) {
daysRemaining = parentalConsentWarning.daysRemaining;
}
let tmp5 = null;
if (null != daysRemaining) {
tmp5 = daysRemaining;
}
const importDefault = React.useCallback(() => {
2026-07-23 10:11:24 +00:00
callback(outer1_2[6]).openURL("https://support.discord.com/hc/articles/14155060633623");
2026-07-20 16:05:17 +00:00
}, []);
if (isParentalConsentBannerActive) {
if (null != tmp5) {
if (tmp5 >= 0) {
obj = { style: tmp.container };
if (0 === tmp5) {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
obj = { learnMoreHook };
2026-07-25 08:10:48 +00:00
let formatResult = intl2.format(importDefault(2199).S5kmfO, obj);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
obj1 = { count: tmp5, learnMoreHook };
2026-07-25 08:10:48 +00:00
formatResult = intl.format(importDefault(2199)["5jm+T3"], obj1);
2026-07-20 16:05:17 +00:00
}
obj.text = formatResult;
2026-07-27 11:26:19 +00:00
return jsx(importDefault(13840), { style: tmp.container });
2026-07-20 16:05:17 +00:00
}
}
}
return null;
};