import { Component, Input } from '@angular/core';
import { Router, ActivatedRoute, ParamMap } from '@angular/router';
import { Store } from '@ngrx/store';
import * as appCommonReducers from '../../reducers/app-common.reducer';
import * as appCommonActions from '../../actions/app-common.actions';



@Component({
    selector: 'fm-session-cleared',
    templateUrl: 'session-cleared.component.html',
    styleUrls: ['session-cleared.component.scss'],
    standalone: false
})


export class SessionClearedComponent  {
  
  constructor(private route: ActivatedRoute, private store: Store<appCommonReducers.State>) {
  }

  handleLoginClick() {
    this.store.dispatch(new appCommonActions.Login(this.route.snapshot.queryParamMap.get('redirectTo')));
  }
}
