2026-09-22 22:11:40 +00:00
|
|
|
// Module ID: 14955
|
|
|
|
|
// Function ID: 14956
|
2026-09-18 20:18:48 +00:00
|
|
|
// Name: useIsParentalConsentBannerActive
|
2026-09-22 22:11:40 +00:00
|
|
|
// Dependencies: [14956, 14958, 2]
|
2026-09-18 20:18:48 +00:00
|
|
|
// Exports: useIsParentalConsentBannerActive
|
|
|
|
|
|
2026-09-22 22:11:40 +00:00
|
|
|
// Module 14955 (useIsParentalConsentBannerActive)
|
|
|
|
|
import useParentalConsentWarning from "useParentalConsentWarning" /* 14956 */;
|
|
|
|
|
import ParentalConsentWarningTypes from "ParentalConsentWarningTypes" /* 14958 */;
|
2026-09-18 20:18:48 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
const result = size.fileFinishedImporting("modules/parent_tools/useIsParentalConsentBannerActive.tsx");
|
|
|
|
|
|
|
|
|
|
export const useIsParentalConsentBannerActive = function useIsParentalConsentBannerActive() {
|
|
|
|
|
const parentalConsentWarning = useParentalConsentWarning.useParentalConsentWarning();
|
|
|
|
|
let hasItem;
|
|
|
|
|
if (parentalConsentWarning != null) {
|
|
|
|
|
const surfaces = parentalConsentWarning.surfaces;
|
|
|
|
|
if (surfaces != null) {
|
|
|
|
|
hasItem = surfaces.includes(ParentalConsentWarningTypes.ParentalConsentWarningSurface.BANNER);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return true === hasItem;
|
|
|
|
|
};
|