decord/source/modules/parent_tools/useIsParentalConsentBannerActive.tsx

25 lines
911 B
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 14320
// Function ID: 14321
2026-07-20 16:05:17 +00:00
// Name: useIsParentalConsentBannerActive
2026-08-25 06:04:03 +00:00
// Dependencies: [14321, 14323, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsParentalConsentBannerActive
2026-08-25 06:04:03 +00:00
// Module 14320 (useIsParentalConsentBannerActive)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-08-25 06:04:03 +00:00
import useParentalConsentWarning from "useParentalConsentWarning" /* 14321 */;
import frozen from "frozen" /* 14323 */;
2026-08-24 06:08:38 +00:00
const result = set.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-08-24 06:08:38 +00:00
hasItem = surfaces.includes(frozen.ParentalConsentWarningSurface.BANNER);
2026-07-20 16:05:17 +00:00
}
}
return true === hasItem;
};