src/app/legacy/containers/ConsentBanner/useConsentBanners/index.js
Function useConsentBanner
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useConsentBanner = (
isUK = false,
showCookieBannerBasedOnCountry = true,
) => {
const [{ showPrivacyBanner, showCookieBanner }, dispatch] = useReducer(