14 lines
555 B
TypeScript
14 lines
555 B
TypeScript
// Metro module 13896 (f13897).
|
|
import { useParentalConsentWarning } from "./useParentalConsentWarning";
|
|
import { ParentalConsentWarningSurface } from "./ParentalConsentWarningTypes";
|
|
export function useIsParentalConsentBannerActive() {
|
|
const parentalConsentWarning = useParentalConsentWarning();
|
|
const r2 = parentalConsentWarning == null;
|
|
let r11 = void 0;
|
|
if (!r2) {
|
|
const surfaces = parentalConsentWarning.surfaces;
|
|
r11 = surfaces == null ? void 0 : surfaces.includes(ParentalConsentWarningSurface.BANNER);
|
|
}
|
|
return r11 === true;
|
|
}
|