import React from 'react' ; import { StatedBeanContainer } from '../core/StatedBeanContainer' ; export interface StatedBeanContextValue { container ? : StatedBeanContainer ; } let statedBeanContext ; export function getStatedBeanContext ( ) { if ( ! statedBeanContext ) { statedBeanContext = React . createContext < StatedBeanContextValue > ( { } ) ; } return statedBeanContext ; }