2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 14981
|
|
|
|
|
// Function ID: 14982
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useIsParentalConsentBannerActive
|
2026-09-16 07:03:15 +00:00
|
|
|
// Dependencies: [14982, 14984, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useIsParentalConsentBannerActive
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 14981 (useIsParentalConsentBannerActive)
|
|
|
|
|
import useParentalConsentWarning from "useParentalConsentWarning" /* 14982 */;
|
|
|
|
|
import ParentalConsentWarningTypes from "ParentalConsentWarningTypes" /* 14984 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/parent_tools/useIsParentalConsentBannerActive.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const useIsParentalConsentBannerActive = function useIsParentalConsentBannerActive() {
|
2026-08-24 06:08:38 +00:00
|
|
|
const parentalConsentWarning = useParentalConsentWarning.useParentalConsentWarning();
|
2026-07-20 16:05:17 +00:00
|
|
|
let hasItem;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (parentalConsentWarning != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const surfaces = parentalConsentWarning.surfaces;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (surfaces != null) {
|
2026-09-10 05:38:07 +00:00
|
|
|
hasItem = surfaces.includes(ParentalConsentWarningTypes.ParentalConsentWarningSurface.BANNER);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return true === hasItem;
|
|
|
|
|
};
|