import { AppContext } from '@fleur/fleur' ; import * as React from 'react' ; import { FleurContext } from './ComponentReactContext' ; const createElementWithContext = < P > ( context , Component , props ? ) : React . ReactElement => React . createElement ( FleurContext , { value : context , children : React . createElement ( Component , props || ( { } as any ) ) , } ) ; export { createElementWithContext } ;