import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SearchScreenComponent } from './search-screen/search-screen.component';
import { RouterModule } from '@angular/router';
import { IqserListingModule, StopPropagationDirective } from '@iqser/common-ui';
import { SharedModule } from '@shared/shared.module';
import { TranslateModule } from '@ngx-translate/core';
import { SearchItemTemplateComponent } from './search-item-template/search-item-template.component';
import { IqserUsersModule } from '@iqser/common-ui/lib/users';
import { StatusBarComponent } from '@iqser/common-ui/lib/shared';
import { TenantPipe } from '@iqser/common-ui/lib/tenants';

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

@NgModule({
    declarations: [SearchScreenComponent, SearchItemTemplateComponent],
    imports: [
        CommonModule,
        RouterModule.forChild(routes),
        SharedModule,
        IqserUsersModule,
        TranslateModule,
        IqserListingModule,
        StatusBarComponent,
        StopPropagationDirective,
        TenantPipe,
    ],
})
export class SearchModule {}
