2026-07-24 07:16:23 +00:00
|
|
|
// Module ID: 13819
|
|
|
|
|
// Function ID: 105917
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useIsParentalConsentBannerActive
|
2026-07-24 07:16:23 +00:00
|
|
|
// Dependencies: [13820, 13822, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useIsParentalConsentBannerActive
|
|
|
|
|
|
2026-07-24 07:16:23 +00:00
|
|
|
// Module 13819 (useIsParentalConsentBannerActive)
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/parent_tools/useIsParentalConsentBannerActive.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const useIsParentalConsentBannerActive = function useIsParentalConsentBannerActive() {
|
2026-07-24 07:16:23 +00:00
|
|
|
const parentalConsentWarning = require(13820) /* useParentalConsentWarning */.useParentalConsentWarning();
|
2026-07-20 16:05:17 +00:00
|
|
|
let hasItem;
|
|
|
|
|
if (null != parentalConsentWarning) {
|
|
|
|
|
const surfaces = parentalConsentWarning.surfaces;
|
|
|
|
|
if (null != surfaces) {
|
2026-07-24 07:16:23 +00:00
|
|
|
hasItem = surfaces.includes(require(13822) /* frozen */.ParentalConsentWarningSurface.BANNER);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return true === hasItem;
|
|
|
|
|
};
|