Parameters for the hook.
Array of branding rules to match against.
Property tags to match against branding rule keywords.
Channel name to match against branding rule keywords.
Whether to use the current pathname for matching.
The matching brand color as a CSS color string, or an empty string if no match is found.
React hook to determine property band color based on branding rules, tags, channel, and optionally the current pathname.
This hook searches for a matching branding rule using the following priority:
usePathis true, it checks if the current pathname contains any keywords from the branding rules (using tags or channel keywords).tagsare provided, it checks if any tag matches a branding rule keyword.channelis provided, it checks if the channel matches a branding rule keyword.If a matching branding rule is found, its background color is returned. If no match is found, an empty string is returned.