import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { UserProfileComponent } from './user-profile/user-profile.component';
import { SettingsCurrencyComponent } from './settings/currency/currency.component';
import { SettingsAccountCategoryComponent } from './settings/account/account.category.component';
import { SettingsAccountComponent } from './settings/account/account.component';
import { SettingsMotionCategoryComponent } from './settings/motion/motion.category.component';
import { SettingsMotionComponent } from './settings/motion/motion.component';
import { AccountComponent } from './accounts/account.component';

const routes: Routes = [
	{
		path: '',
		redirectTo: 'signin',
		pathMatch: 'full',
	},
	{
		path: 'user/profile',
		component: UserProfileComponent,
	},
	{
		path: 'settings/currencies',
		component: SettingsCurrencyComponent,
	},
	{
		path: 'settings/account-categories',
		component: SettingsAccountCategoryComponent,
	},
	{
		path: 'settings/accounts',
		component: SettingsAccountComponent,
	},
	{
		path: 'settings/motion-categories',
		component: SettingsMotionCategoryComponent,
	},
	{
		path: 'settings/motions',
		component: SettingsMotionComponent,
	},
	{
		path: 'account-category/:id',
		component: AccountComponent,
	},
];

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