import { ExtraOptions, Routes } from '@angular/router';
import { RedirectGuard } from '@core/guards';

export const routerOptions: ExtraOptions = {
  anchorScrolling: 'enabled',
  scrollPositionRestoration: 'enabled',
  paramsInheritanceStrategy: 'always',
};

export const publicRoutes: Routes = [
  {
    path: '',
    canActivate: [RedirectGuard],
    children: [],
  },
  {
    path: 'strutture',
    // component: AppLayout,
    loadChildren: () =>
      import('./strutture-pubbliche/strutture-pubbliche.routes').then(
        (r) => r.strutturePubblicheRoutes,
      ),
  },
];
