// angular
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

// app
import { Page404Component } from '../authentication/page404/page404.component';
import { Dashboard2Component } from './dashboard2/dashboard2.component';
import { DashboardIncomeComponent } from './income/dashboard.component';
import { DashboardOutcomeComponent } from './outcome/dashboard.component';

const routes: Routes = [
	{
		path: '',
		redirectTo: 'rests',
		pathMatch: 'full',
	},
	{
		path: 'rests',
		component: Dashboard2Component,
	},
	{
		path: 'income',
		component: DashboardIncomeComponent,
	},
	{
		path: 'outcome',
		component: DashboardOutcomeComponent,
	},
	{ path: '**', component: Page404Component },
];

@NgModule({
	imports: [RouterModule.forChild(routes)],
	exports: [RouterModule],
})
export class DashboardRoutingModule {
}
