2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 13830
|
|
|
|
|
// Function ID: 106044
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useIsParentalConsentBannerActive
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [13831, 13833, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useIsParentalConsentBannerActive
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 13830 (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-25 08:10:48 +00:00
|
|
|
const parentalConsentWarning = require(13831) /* useParentalConsentWarning */.useParentalConsentWarning();
|
2026-07-20 16:05:17 +00:00
|
|
|
let hasItem;
|
|
|
|
|
if (null != parentalConsentWarning) {
|
|
|
|
|
const surfaces = parentalConsentWarning.surfaces;
|
|
|
|
|
if (null != surfaces) {
|
2026-07-25 08:10:48 +00:00
|
|
|
hasItem = surfaces.includes(require(13833) /* frozen */.ParentalConsentWarningSurface.BANNER);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return true === hasItem;
|
|
|
|
|
};
|