Module "wordpress-plugins/real-cookie-banner/src/public/ts/hooks/useTcf"
Functions
useTcf
- useTcf(active: boolean, tcf: OtherOptions["tcf"], tcfMeta: OtherOptions["tcfMetadata"]): { gvl: GVL; metadata: TcfMetadata; model: TCModel; original: Tcf }
-
Parameters
-
active: boolean
-
tcf: OtherOptions["tcf"]
-
tcfMeta: OtherOptions["tcfMetadata"]
Returns { gvl: GVL; metadata: TcfMetadata; model: TCModel; original: Tcf }
-
gvl: GVL
-
-
model: TCModel
-
original: Tcf
Merges the localized
tcf
andtcfMetadata
together so it can be used inside ourBannerContextProps
and returns a validGVL
instance.