import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { routes } from './app.routes';

// To enable auth-aware navbar items, implement M2S2AuthProvider and provide it:
// import { M2S2_AUTH_PROVIDER } from '@m2s2/ng-lib';
// import { MyAuthProvider } from './auth/my-auth.provider';

export const appConfig: ApplicationConfig = {
  providers: [
    provideZoneChangeDetection({ eventCoalescing: true }),
    provideRouter(routes),
    provideAnimationsAsync(),
    // { provide: M2S2_AUTH_PROVIDER, useClass: MyAuthProvider },
  ],
};
