import { CommonModule } from '@angular/common';
import { Component, HostListener } from '@angular/core';

@Component({
  selector: 'app-header',
  standalone: true,
  imports: [CommonModule],
  templateUrl: './header.component.html',
  styleUrl: './header.component.scss'
})
export class HeaderComponent {
  public isCollapsed: boolean = false;

  @HostListener('document:click', ['$event'])
  public reset(event: unknown) {
    if ((event as any).srcElement.tagName !== 'path') {
      this.isCollapsed = false;
    }
  }
}
