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

66 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14298
// Function ID: 14299
2026-07-20 16:05:17 +00:00
// Name: FamilyCenterParentalConsentNotice
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 21, 4668, 712, 14290, 14291, 4093, 4739, 14299, 1236, 2336, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 14298 (FamilyCenterParentalConsentNotice)
import ThemesDefault from "Themes" /* 712 */;
import FamilyCenterInlineWarningNoticeDefault from "FamilyCenterInlineWarningNotice" /* 14299 */;
import closure_3 from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
createCacheKey = { container: null, link: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { marginTop: ThemesDefault.space.PX_16 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { textDecorationLine: "underline" };
2026-08-24 06:08:38 +00:00
let closure_5 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/parent_tools/native/FamilyCenterParentalConsentNotice.tsx");
2026-07-20 16:05:17 +00:00
export default function FamilyCenterParentalConsentNotice() {
2026-08-24 06:08:38 +00:00
const tmp = callback();
const _require = tmp;
let obj = _require(14290);
2026-07-20 16:05:17 +00:00
const isParentalConsentBannerActive = obj.useIsParentalConsentBannerActive();
2026-08-24 06:08:38 +00:00
obj1 = _require(14291);
2026-07-20 16:05:17 +00:00
const parentalConsentWarning = obj1.useParentalConsentWarning();
let daysRemaining;
2026-07-29 08:29:29 +00:00
if (parentalConsentWarning != null) {
2026-07-20 16:05:17 +00:00
daysRemaining = parentalConsentWarning.daysRemaining;
}
2026-07-29 08:29:29 +00:00
if (daysRemaining == null) {
daysRemaining = null;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
importDefault = React.useCallback(() => {
2026-07-29 08:29:29 +00:00
callback(table[6]).openURL("https://support.discord.com/hc/articles/14155060633623");
2026-07-20 16:05:17 +00:00
}, []);
if (isParentalConsentBannerActive) {
2026-07-29 08:29:29 +00:00
if (null != daysRemaining) {
if (daysRemaining >= 0) {
function learnMoreHook(children) {
2026-08-24 06:08:38 +00:00
return closure_1_4(lib(closure_1_2[7]).Text, { variant: "text-sm/medium", color: "text-strong", style: lib.link, accessibilityRole: "link", onPress: closure_1, children }, arg1);
2026-07-29 08:29:29 +00:00
}
obj = { style: null, text: null };
obj[0] = tmp.container;
if (0 === daysRemaining) {
const intl2 = tmp2(1236).intl;
obj = { learnMoreHook: null };
obj[0] = learnMoreHook;
2026-08-24 06:08:38 +00:00
let formatResult = intl2.format(tmp9(2336).S5kmfO, obj);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const intl = tmp2(1236).intl;
obj1 = { count: null, learnMoreHook: null };
obj1[0] = daysRemaining;
obj1[1] = learnMoreHook;
2026-08-24 06:08:38 +00:00
formatResult = intl.format(tmp9(2336)["5jm+T3"], obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = formatResult;
2026-08-24 06:08:38 +00:00
return jsx(FamilyCenterInlineWarningNoticeDefault, { style: null, text: null });
2026-07-20 16:05:17 +00:00
}
}
}
return null;
};