()
| 30 | }) |
| 31 | return ( |
| 32 | <ThemeContext value={{ theme, setTheme }}> |
| 33 | <span ref={container} style={{ display: 'contents' }}> |
| 34 | {props.children} |
| 35 | </span> |
| 36 | </ThemeContext> |
| 37 | ) |
| 38 | } |
| 39 | |
| 40 | export function createTheme() { |
| 41 | return getContext(ThemeContext) |
| 42 | } |
no test coverage detected