import { MainWindowState } from '../../../../../models/mainwindow/main-window-state' ; import { NavigationMercenaries } from '../../../../../models/mainwindow/navigation/navigation-mercenaries' ; import { NavigationState } from '../../../../../models/mainwindow/navigation/navigation-state' ; import { MercenariesSelectCompositionEvent } from '../../events/mercenaries/mercenaries-select-composition-event' ; import { Processor } from '../processor' ; export class MercenariesSelectCompositionProcessor implements Processor { public async process ( event , currentState , history , navigationState ) { const nav = navigationState . update ( { navigationMercenaries : navigationState . navigationMercenaries . update ( { selectedCategoryId : `mercenaries-composition-details` , selectedCompositionId : event . compositionId , menuDisplayType : 'breadcrumbs' , } as NavigationMercenaries ) , text : 'Composition details' , } as NavigationState ) ; return [ null , nav ] ; } }