Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-plugins/real-cookie-banner/src/public/ts/hooks/useTcf"

Index

Functions

Functions

useTcf

  • useTcf(active: boolean, tcf: OtherOptions["tcf"], tcfMeta: OtherOptions["tcfMetadata"]): { gvl: GVL; metadata: TcfMetadata; model: TCModel; original: Tcf }
  • Merges the localized tcf and tcfMetadata together so it can be used inside our BannerContextProps and returns a valid GVL instance.

    Parameters

    • active: boolean
    • tcf: OtherOptions["tcf"]
    • tcfMeta: OtherOptions["tcfMetadata"]

    Returns { gvl: GVL; metadata: TcfMetadata; model: TCModel; original: Tcf }

Generated using TypeDoc