Websites v4 docs v12.7.0
    Preparing search index...

    Function usePageBrandingRule

    • Returns the branding rule assigned to the current page's config (via PageBranding) or matched by a keyword in the URL (see PageBrandingProvider), or null when the page uses the agency's default branding.

      Returns BrandingRule | null

      const brandingRule = usePageBrandingRule();
      const logo = brandingRule?.logo?.src || agency.logo;