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

import { AdminComponent } from './admin.component';
import { FamilyMembersComponent } from './family-members/family-members.component';
import { LineMessagingAccountComponent } from './lines/line-messaging-account/line-messaging-account.component';
import { LogsComponent } from './logs/logs.component';
import { PastoralDomainsComponent } from './pastoral-domains/pastoral-domains.component';
export class AdminRoutingConfig {

  public static ADMIN_MENU_ITEMS: NbMenuItem[] = [
    {
      title: 'Family Members',
      icon: 'person-outline',
      link: '/Admin/members',
    },
    {
      title: 'Cell Groups',
      icon: 'people-outline',
      link: '/Admin/pastoralDomains',
    },
    {
      title: 'Happiness Group',
      icon: 'smiling-face-outline',
      link: '/Admin/happinessGroup',
    },
    {
      title: 'Logs',
      icon: 'file-text-outline',
      link: '/Admin/logs',
      home: true,
    },
    {
      title: 'Line Messenger',
      icon: 'smiling-face-outline',
      children: [
        {
          title: 'Line Accounts',
          icon: 'smiling-face-outline',
          link: '/Admin/lineAccount',
        },

      ]
    },

  ];
}
const routes: Routes = [
  {
    path: '', component: AdminComponent,

    children:
      [
        { path: 'members', component: FamilyMembersComponent },
        { path: 'pastoralDomains', component: PastoralDomainsComponent },
        { path: 'happinessGroup', component: PastoralDomainsComponent },
        { path: 'logs', component: LogsComponent },
        { path: 'lineAccount', component: LineMessagingAccountComponent },
      ]
  }
];

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