import { DigiNgNavigationBreadcrumbsModule } from '@af/digi-ng/_navigation/navigation-breadcrumbs';
import { CommonModule } from '@angular/common';
import { HttpClient } from '@angular/common/http';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { MarkdownModule } from 'ngx-markdown';
import { LoaderModule } from '../loader/loader.module';
import { FooterModule } from './components/footer/footer.module';
import { NavigationModule } from './components/navigation/navigation.module';
import { SidebarModule } from './components/sidebar/sidebar.module';
import { SkipToContentModule } from './components/skip-to-content/skip-to-content.module';
import { LayoutComponent } from './layout.component';

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  declarations: [LayoutComponent],
  imports: [
    CommonModule,
    RouterModule,
    SkipToContentModule,
    NavigationModule,
    SidebarModule,
    FooterModule,
    MarkdownModule.forRoot({ loader: HttpClient }),
    DigiNgNavigationBreadcrumbsModule,
    LoaderModule,
  ],
  exports: [LayoutComponent],
})
export class LayoutModule {}
