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.
PageBranding
PageBrandingProvider
null
const brandingRule = usePageBrandingRule();const logo = brandingRule?.logo?.src || agency.logo; Copy
const brandingRule = usePageBrandingRule();const logo = brandingRule?.logo?.src || agency.logo;
Returns the branding rule assigned to the current page's config (via
PageBranding) or matched by a keyword in the URL (seePageBrandingProvider), ornullwhen the page uses the agency's default branding.