(props: ProviderProps)
| 109 | }); |
| 110 | |
| 111 | function ProviderInner(props: ProviderProps) { |
| 112 | let { |
| 113 | elementType: Element = 'div', |
| 114 | UNSAFE_style, |
| 115 | UNSAFE_className = '', |
| 116 | styles, |
| 117 | children, |
| 118 | // Set a default background if the provider is rendered as the root <html> element. |
| 119 | background = Element === 'html' ? 'base' : undefined, |
| 120 | colorScheme |
| 121 | } = props; |
| 122 | let {locale, direction} = useLocale(); |
| 123 | return ( |
| 124 | <Element |
| 125 | {...filterDOMProps(props)} |
| 126 | lang={locale} |
| 127 | dir={direction} |
| 128 | style={UNSAFE_style} |
| 129 | className={UNSAFE_className + mergeStyles(styles, providerStyles({background, colorScheme}))}> |
| 130 | <Fonts /> |
| 131 | {children} |
| 132 | </Element> |
| 133 | ); |
| 134 | } |
nothing calls this directly
no test coverage detected