import { Route } from '@angular/router';

import { ListComponent } from './components/list.component';
import { ViewComponent } from '../../member/user/components/view.component';

import { MoneyLogsResolver } from './resolvers/money-log.resolver';
import { UserResolver } from '../../member/user/resolvers/user.resolver';

export const moneyLogRoutes: Route[] = [
  {
    path: '',
    component: ListComponent,
    resolve: {
      moneyLogs: MoneyLogsResolver,
    },
  },
  {
    path: ':id',
    component: ViewComponent,
    resolve: {
      users: UserResolver,
    },
  },
];
