import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { JustificationsScreenComponent } from './justifications-screen/justifications-screen.component';
import { RouterModule } from '@angular/router';
import { SharedModule } from '@shared/shared.module';
import { TableItemComponent } from './table-item/table-item.component';
import { JustificationsDialogService } from './justifications-dialog.service';
import { AddEditJustificationDialogComponent } from './add-edit-justification-dialog/add-edit-justification-dialog.component';
import { TranslateModule } from '@ngx-translate/core';
import { CircleButtonComponent, HasScrollbarDirective, IconButtonComponent, IqserListingModule } from '@iqser/common-ui';

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

@NgModule({
    declarations: [JustificationsScreenComponent, TableItemComponent, AddEditJustificationDialogComponent],
    imports: [
        RouterModule.forChild(routes),
        CommonModule,
        SharedModule,
        TranslateModule,
        IqserListingModule,
        IconButtonComponent,
        CircleButtonComponent,
        HasScrollbarDirective,
    ],
    providers: [JustificationsDialogService],
})
export class JustificationsModule {}
