42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
// Module ID: 15466
|
|
// Function ID: 15467
|
|
// Name: useParentalConsentWarning
|
|
// Dependencies: [15467, 558, 576, 504, 2]
|
|
|
|
// Module 15466 (useParentalConsentWarning)
|
|
import react from "react" /* 576 */;
|
|
import ParentalConsentWarningStore from "ParentalConsentWarningStore" /* 15467 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let tmp;
|
|
const get_initialized = tmp(504);
|
|
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useParentalConsentWarning() {
|
|
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);
|
|
}) : (function useParentalConsentWarning() {
|
|
let warning;
|
|
const items = [ParentalConsentWarningStore];
|
|
const obj = get_initialized;
|
|
return obj.useStateFromStores(items, () => warning.getWarning());
|
|
});
|
|
const result = size.fileFinishedImporting("modules/parent_tools/useParentalConsentWarning.tsx");
|
|
|
|
export const useParentalConsentWarning = tmp2;
|