24 lines
911 B
TypeScript
24 lines
911 B
TypeScript
// Module ID: 14868
|
|
// Function ID: 14869
|
|
// Name: useIsParentalConsentBannerActive
|
|
// Dependencies: [14869, 14871, 2]
|
|
// Exports: useIsParentalConsentBannerActive
|
|
|
|
// Module 14868 (useIsParentalConsentBannerActive)
|
|
import set from "set" /* 2 */;
|
|
import useParentalConsentWarning from "useParentalConsentWarning" /* 14869 */;
|
|
import frozen from "frozen" /* 14871 */;
|
|
|
|
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;
|
|
};
|