import React from 'react' ; import TeleportContext from './teleportContext' ; const ReactContext = React . createContext < TeleportContext > ( null ) ; const TeleportContextProvider = props => { return < ReactContext . Provider value = { props . ctx } children = { props . children } / > ; } ; export default TeleportContextProvider ; export { ReactContext } ; type Props = { ctx : TeleportContext ; } ;