24 lines
911 B
TypeScript
24 lines
911 B
TypeScript
// Module ID: 14320
|
|
// Function ID: 14321
|
|
// Name: useIsParentalConsentBannerActive
|
|
// Dependencies: [14321, 14323, 2]
|
|
// Exports: useIsParentalConsentBannerActive
|
|
|
|
// Module 14320 (useIsParentalConsentBannerActive)
|
|
import set from "set" /* 2 */;
|
|
import useParentalConsentWarning from "useParentalConsentWarning" /* 14321 */;
|
|
import frozen from "frozen" /* 14323 */;
|
|
|
|
const result = set.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(frozen.ParentalConsentWarningSurface.BANNER);
|
|
}
|
|
}
|
|
return true === hasItem;
|
|
};
|