import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { ModalComponent } from './components/modal/modal.component';
import { GdprConsentBannerComponent } from './components/gdpr-consent-banner/gdpr-consent-banner.component';
import { ErrorHandlerService } from './services/error-handler.service';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [RouterOutlet, ModalComponent, GdprConsentBannerComponent],
  templateUrl: './app.component.html',
  styleUrl: './app.component.scss'
})
export class AppComponent {
  title = 'frontend';

  constructor(private errorHandler: ErrorHandlerService) {
    // Initialize error handler to setup axios interceptor
    // The service will automatically set up the interceptor in its constructor
  }
}
