Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-plugins/real-cookie-banner/src/public/ts/components/config/consent/list/blocker"

Index

Variables

Const ConsentRecordBlocker

ConsentRecordBlocker: FC<{ record: Consent }> = observer(({ record }) => {/* onlypro:start */const {optionStore: {others: { bannerI18n, pageByIdUrl }}} = useStores();const {blocker_thumbnail,design_version,// eslint-disable-next-line @typescript-eslint/naming-conventionrevision: {data: {groups,options: { SETTING_EPRIVACY_USA, SETTING_AGE_NOTICE, SETTING_LIST_SERVICES_NOTICE }}},blocker,revision_independent: {data: {banner: {customizeValuesBanner: {layout,decision,legal,design,headerDesign,bodyDesign,footerDesign,texts,individualLayout,saveButton,group,individualTexts,customCss}},blocker: allBlocker,pageIdToPermalink,consentForwardingExternalHosts}}} = record;const handleNotAllowedForRecord = useCallback(() => {// Silence is golden.}, []);const [blockerDef] = allBlocker.filter(({ id }) => id === blocker);if (blocker_thumbnail) {blockerDef.visualThumbnail = blocker_thumbnail;}const BlockerContext = BlockerContextFactory.Context();return (<BlockerContext.Providervalue={{layout: { ...layout },decision: { ...decision },legal: { ...legal },design: { ...design },headerDesign: { ...headerDesign },bodyDesign: { ...bodyDesign },footerDesign: { ...footerDesign },texts: { ...texts },individualLayout: { ...individualLayout },saveButton: { ...saveButton },group: { ...group },individualTexts: { ...individualTexts },customCss: { ...customCss },pageIdToPermalink,consentForwardingExternalHosts,groups,i18n: bannerI18n,consent: {groups: record.previous_decision},pageByIdUrl,ePrivacyUSA: !!SETTING_EPRIVACY_USA,ageNotice: !!SETTING_AGE_NOTICE,listServicesNotice: !!SETTING_LIST_SERVICES_NOTICE,blocker: blockerDef,onUnblock: handleNotAllowedForRecord,showFooter: design_version === 1}}><Blocker /></BlockerContext.Provider>);/* onlypro:end */})

Show a blocker from a given record in "Consent" table.

Generated using TypeDoc