import { observable } from "mobx" ; import { AppConfiguration } from "../classes/AppConfiguration" ; export default class ComponentStatusStore { @ observable public lastAnalysisDate ? : Date ; public leakPeriodDate ? : Date ; public readonly appConfiguration : AppConfiguration ; constructor ( appConfiguration ) { this . appConfiguration = appConfiguration ; } public updateLastAnalysisDate ( inputDate ) { if ( this . lastAnalysisDate === undefined || this . lastAnalysisDate . getTime ( ) !== inputDate . getTime ( ) ) { this . lastAnalysisDate = inputDate ; } } }