Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-plugins/real-cookie-banner/src/public/ts/components/config/cookies/tcf/router"

Index

Variables

Variables

Const TcfRouter

TcfRouter: FC<{}> = observer(() => {const { path } = useRouteMatch();const { tcfStore } = useStores();const { purposes } = tcfStore;// Load all declarationsuseEffect(() => {tcfStore.fetchDeclarations();}, []);const hintText = useConfigHintText("tcf-vendor");return purposes.size === 0 ? (<Spin style={{ margin: "auto", marginTop: 15 }} />) : (<><ConfigHintModal identifier="tcf-vendor" /><RouteSwitch><Route path={path} exact><TcfVendorConfigurationList /><p className="description" style={{ maxWidth: 800, margin: "30px auto 0", textAlign: "center" }}>{hintText}</p></Route><Route path={`${path}/new`}><TcfVendorSelector /></Route><Route path={`${path}/edit/:vendorConfiguration`}><ConfigContent maxWidth="fixed"><TcfVendorConfigurationForm /></ConfigContent></Route></RouteSwitch></>);})

Generated using TypeDoc