refactor(ui-contexts): update TooltipContext to use ReactNode for payload type

Merged
TA
5mo ago
+2-4

⚠️ This is part 1/23 of #40796. It has no prerequisites and should be merged first.


Proposed changes (including videos or screenshots)

As a first step towards upgrading to React 19, it handles types from @types/react looking forward the next major.

Issue(s)

Task: ARCH-2170

Steps to test or reproduce

Further comments

No runtime change is expected from it.

Summary by CodeRabbit

  • Refactor
    • Enhanced tooltip implementation to support a broader range of content types, improving flexibility for tooltip customization.