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

import { StoreLayoutComponent } from '../../core/layout/store-layout/store-layout.component';
import { StoreHomePageComponent } from './pages/store-home-page/store-home-page.component';

export const routes: Routes = [
  {
    path: '',
    component: StoreLayoutComponent,
    children: [
      {
        path: '',
        component: StoreHomePageComponent
      },
      {
        path: 'producto/:id',
        loadComponent: () =>
          import('./pages/product-detail-page/product-detail-page.component').then(
            (m) => m.ProductDetailPageComponent
          )
      }
    ]
  }
];
