import { Directive, HostListener } from '@angular/core';
import { RouterHistoryService } from '@services/router-history.service';

@Directive({
    selector: '[redactionNavigateLastDossiersScreen]',
})
export class NavigateLastDossiersScreenDirective {
    constructor(private readonly _routerHistoryService: RouterHistoryService) {}

    @HostListener('click') onClick() {
        this._routerHistoryService.navigateToLastDossiersScreen();
    }
}
