Wraps a React element in loaded component libraries' theme providers so their
built-in components inherit the MJ theme (including dark mode). Currently themes
Ant Design via ConfigProvider when the antd library is loaded; otherwise
returns the element unchanged. Because ConfigProvider supplies React context,
one wrap at the root themes every antd component in the subtree — including those
inside child components. libraries is keyed by global-variable name (e.g. antd).
A generated component that also wraps its own ConfigProvider simply nests under
this one (antd merges nested configs), so this is safe alongside component-level
theming.
Wraps a React element in loaded component libraries' theme providers so their built-in components inherit the MJ theme (including dark mode). Currently themes Ant Design via
ConfigProviderwhen theantdlibrary is loaded; otherwise returns the element unchanged. BecauseConfigProvidersupplies React context, one wrap at the root themes every antd component in the subtree — including those inside child components.librariesis keyed by global-variable name (e.g.antd).A generated component that also wraps its own
ConfigProvidersimply nests under this one (antd merges nested configs), so this is safe alongside component-level theming.