import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SharedModule } from '../../shared/shared.module';
import { CommonModule } from '@angular/common';
import { LoadingAnimationComponent } from './loading-animation/loading-animation.component';
import { CardModule, LoadingModule, ButtonModule } from '@libs/ui';
import { TestingContainerComponent } from './testing-container/testing-container.component';

const routes: Routes = [
  {
    path: 'container',
    component: TestingContainerComponent,
  },
  {
    path: 'loading',
    component: LoadingAnimationComponent,
  },
  { path: '**', redirectTo: 'container' },
];

@NgModule({
  imports: [CommonModule, SharedModule, RouterModule.forChild(routes), CardModule, LoadingModule, ButtonModule],
  exports: [],
  declarations: [LoadingAnimationComponent, TestingContainerComponent],
})
export class DebugModule {}
