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

import { SearchPage } from './search.page';

const routes: Routes = [
  {
    path: '',
    component: SearchPage
  },
  {
    path: 'sender',
    loadChildren: () => import('./sender/sender.module').then( m => m.SenderPageModule)
  },
  {
    path: 'organic-entity',
    loadChildren: () => import('./organic-entity/organic-entity.module').then( m => m.OrganicEntityPageModule)
  }
];

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