import { action , observable } from 'mobx' ; import AbstractStore from './store' ; class VideoStore extends AbstractStore { @ observable url = '' ; @ observable blobType = '' ; @ observable toDisplay = false ; constructor ( ) { super ( ) ; this . init ( ) ; } @ action init = ( ) => { this . url = '' ; this . blobType = '' ; this . toDisplay = false ; } ; @ action updateBlobUrl = ( newUrl ) => { this . url = newUrl ; } ; @ action updateVideoDisplay = ( value ) => { this . toDisplay = value ; } ; @ action updateBlobType = ( value ) => { this . blobType = value ; } ; } export default new VideoStore ( ) ;