import { CommonModule } from '@angular/common';
import { LOCALE_ID, NgModule } from '@angular/core';
import {
  MatPaginatorIntl,
  MatPaginatorModule,
} from '@angular/material/paginator';
import { MatProgressBarModule } from '@angular/material/progress-bar';
import { MatSortModule } from '@angular/material/sort';
import { MatTableModule } from '@angular/material/table';
import { MatTooltipModule } from '@angular/material/tooltip';
import { RouterModule } from '@angular/router';
import { ProfilComponentModule } from 'src/app/components/profil/profil.module';
import { CustomPaginator } from 'src/app/custom/customPaginatorConfiguration';
import { TableVueDetailsComponent } from './table-vue-details.component';

@NgModule({
  imports: [
    CommonModule,
    RouterModule,
    ProfilComponentModule,
    MatTableModule,
    MatSortModule,
    MatPaginatorModule,
    MatProgressBarModule,
    MatTooltipModule,
  ],
  declarations: [TableVueDetailsComponent],
  providers: [
    {
      provide: LOCALE_ID,
      useValue: 'fr-FR',
    },
    { provide: MatPaginatorIntl, useValue: CustomPaginator() },
  ],

  exports: [TableVueDetailsComponent],
})
export class TableVueDetailsComponentModule {}
