import { Routes } from '@angular/router';
import { TabsPage } from './tabs.page';

export const routes: Routes = [
  {
    path: 'tabs',
    component: TabsPage,
    children: [
      {
        path: 'tab1',
        loadComponent: () =>
          import('../tab1/tab1.page').then((m) => m.Tab1Page),
      },
      {
        path: 'tab2',
        loadComponent: () =>
          import('../tab2/tab2.page').then((m) => m.Tab2Page),
      },
      {
        path: 'tab3',
        loadComponent: () =>
          import('../tab3/tab3.page').then((m) => m.Tab3Page),
      },
      {
        path: 'picture',
        loadComponent: () =>
          import('../picture/picture.component').then((m) => m.PictureComponent),
      },
      {
        path: 'inquiry',
        loadComponent: () =>
          import('../inquiry/inquiry.component').then((m) => m.InquiryComponent),
      },
      {
        path: 'knowledge-page',
        loadComponent: () =>
          import('../knowledge/knowledge-page/knowledge-page.component').then((m) => m.KnowledgePageComponent),
      },
      {
        path: 'knowledge-total',
        loadComponent: () =>
          import('../knowledge/knowledge-total/knowledge-total.component').then((m) => m.KnowledgeTotalComponent),
      },
      {
        path: 'knowledge-video',
        loadComponent: () =>
          import('../knowledge/knowledge-video/knowledge-video.component').then((m) => m.KnowledgeVideoComponent),
      },
      {
        path: 'knowledge-page1',
        loadComponent: () =>
          import('../knowledge/knowledge-page1/knowledge-page1.component').then((m) => m.KnowledgePage1Component),
      },
      {
        path: '',
        redirectTo: '/tabs/tab1',
        pathMatch: 'full',
      },
    ],
  },
  {
    path: '',
    redirectTo: '/tabs/tab1',
    pathMatch: 'full',
  },
];
