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

import { NewGroupPage } from './new-group.page';

const routes: Routes = [
  {
    path: '',
    component: NewGroupPage
  },
  {
    path: 'contacts',
    loadChildren: () => import('./contacts/contacts.module').then( m => m.ContactsPageModule)
  },
  {
    path: 'group-chat',
    loadChildren: () => import('./group-chat/group-chat.module').then( m => m.GroupChatPageModule)
  },
  {
    path: 'group-contacts',
    loadChildren: () => import('./group-contacts/group-contacts.module').then( m => m.GroupContactsPageModule)
  }

];

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