import type { Theme } from '@glitz/core' ; import { PropsWithChildren , createElement } from 'react' ; import { ThemeContext } from './context' ; type PropType = { theme : Theme ; } ; export function ThemeProvider ( props ) { return createElement ( ThemeContext . Provider , { value : props . theme } , props . children ) ; }