import { action , makeObservable } from 'mobx' ; import { electronService } from '../services/electron.service' ; import { RootStore } from './rootStore.js' ; export class OverlayStore { constructor ( private rootStore ) { makeObservable ( this ) ; } @ action createOverlay ( data ) { electronService . ipcRenderer . send ( 'createOverlay' , data ) ; } @ action updateOverlay ( data ) { electronService . ipcRenderer . send ( 'overlayUpdate' , data ) ; } }