import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { ReactiveFormsModule } from '@angular/forms';

// Angular Material
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';

// Harmonized CreateView Component
import { HarmonizedCreateViewModule } from 'src/app/components/dynamic-form/harmonized-create-view.module';

// Page Component
import { HarmonizedCreatePageComponent } from './harmonized-create.page';

const routes: Routes = [
  {
    path: '',
    component: HarmonizedCreatePageComponent
  }
];

@NgModule({
  declarations: [HarmonizedCreatePageComponent],
  imports: [
    CommonModule,
    ReactiveFormsModule,
    RouterModule.forChild(routes),

    // Angular Material
    MatProgressSpinnerModule,
    MatButtonModule,
    MatIconModule,

    // Harmonized Component
    HarmonizedCreateViewModule
  ],
  exports: [HarmonizedCreatePageComponent]
})
export class HarmonizedCreatePageModule {}