import { observer } from 'mobx-react-lite' ; import { FolderExplorerContext , IFolderExplorerContext } from './FolderExplorerContext' ; interface Props { state : IFolderExplorerContext ; } export const FolderExplorer = observer < Props > ( function FolderExplorer ( { state , children , } ) { return ( < FolderExplorerContext . Provider value = { state } > { children } < /FolderExplorerContext.Provider>); } ) ;