import { createElement , FunctionComponent , ReactNode } from 'react' ; import { Stapp } from 'stapp' ; import { StappContext } from '../shared/StappContext' ; export const Provider = < State , Api > ( { app , children } ) => createElement ( StappContext . Provider , { value : app , children } ) ; ( Provider as FunctionComponent < any > ) . displayName = 'Stapp.Provider' ;