import CluiStore from '@store/cluiStore' ; import React from 'react' ; const Clear = ( props ) => { React . useEffect ( ( ) => { if ( props . item ) { props . item . session . reset ( ) ; } CluiStore . updateRun ( false ) ; window . scrollTo ( { top : 0 , left : 0 } ) ; } , [ ] ) ; return < div />; } ; const clearObject = { description : 'Clears screen' , run : ( ) => < Clear /> } ; export default clearObject ;