decord/alpha/source/modules/parent_tools/useParentalConsentWarning.tsx

43 lines
1.3 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 15466
// Function ID: 15467
2026-07-20 16:05:17 +00:00
// Name: useParentalConsentWarning
2026-10-13 12:43:34 +00:00
// Dependencies: [15467, 558, 576, 504, 2]
2026-07-20 16:05:17 +00:00
2026-10-13 12:43:34 +00:00
// Module 15466 (useParentalConsentWarning)
2026-10-03 08:58:59 +00:00
import react from "react" /* 576 */;
2026-10-13 12:43:34 +00:00
import ParentalConsentWarningStore from "ParentalConsentWarningStore" /* 15467 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
let tmp;
const get_initialized = tmp(504);
2026-10-08 09:57:35 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useParentalConsentWarning() {
2026-10-03 08:58:59 +00:00
let tmp4;
let tmp5;
let warning;
const obj = react;
const cResult = obj.c(2);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [ParentalConsentWarningStore];
const fn = function o() {
return warning.getWarning();
};
cResult[0] = items;
cResult[1] = fn;
tmp4 = items;
tmp5 = fn;
} else {
[tmp4, tmp5] = cResult;
}
const tmpResult = get_initialized;
return tmpResult.useStateFromStores(tmp4, tmp5);
2026-10-08 09:57:35 +00:00
}) : (function useParentalConsentWarning() {
2026-10-03 08:58:59 +00:00
let warning;
const items = [ParentalConsentWarningStore];
const obj = get_initialized;
return obj.useStateFromStores(items, () => warning.getWarning());
});
const result = size.fileFinishedImporting("modules/parent_tools/useParentalConsentWarning.tsx");
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
export const useParentalConsentWarning = tmp2;