import { MainWindowState } from '../../../../../models/mainwindow/main-window-state' ; import { NavigationBattlegrounds } from '../../../../../models/mainwindow/navigation/navigation-battlegrounds' ; import { NavigationState } from '../../../../../models/mainwindow/navigation/navigation-state' ; import { SelectBattlegroundsPersonalStatsHeroTabEvent } from '../../events/battlegrounds/select-battlegrounds-personal-stats-hero-event' ; import { Processor } from '../processor' ; export class SelectBattlegroundsPersonalStatsHeroProcessor implements Processor { public async process ( event , currentState , history , navigationState ) { const navigationBattlegrounds = navigationState . navigationBattlegrounds . update ( { selectedPersonalHeroStatsTab : event . tab , } as NavigationBattlegrounds ) ; return [ null , navigationState . update ( { isVisible : true , navigationBattlegrounds : navigationBattlegrounds , } as NavigationState ) , ] ; } }