// angular
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DecimalPipe } from '@angular/common';

// libs
import { NgScrollbarModule } from 'ngx-scrollbar';
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
import { MatMenuModule } from '@angular/material/menu';
import { MatProgressBarModule } from '@angular/material/progress-bar';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatTooltipModule } from '@angular/material/tooltip';
import { NgApexchartsModule } from 'ng-apexcharts';
import { TranslateModule } from '@ngx-translate/core';
import { MAT_DATE_LOCALE } from '@angular/material/core';

// app
import { DashboardRoutingModule } from './dashboard-routing.module';
import { Dashboard2Component } from './dashboard2/dashboard2.component';
import { DashboardIncomeComponent } from './income/dashboard.component';
import { DashboardOutcomeComponent } from './outcome/dashboard.component';
import { ComponentsModule } from 'src/app/shared/components/components.module';
import { SharedModule } from '../shared/shared.module';

@NgModule({
	declarations: [
		Dashboard2Component,
		DashboardIncomeComponent,
		DashboardOutcomeComponent,
	],
	imports: [
		CommonModule,
		DashboardRoutingModule,
		NgApexchartsModule,
		NgScrollbarModule,
		MatIconModule,
		MatButtonModule,
		MatMenuModule,
		MatTooltipModule,
		MatCheckboxModule,
		DragDropModule,
		MatProgressBarModule,
		ComponentsModule,
		SharedModule,
		TranslateModule,
	],
	providers: [
		{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' },
		DecimalPipe,
	]
})
export class DashboardModule {
}
