import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { provideStates } from '@ngxs/store';
import { VisionState } from './store/vision.state';

const routes: Routes = [
  { path: '', redirectTo: 'analyzer', pathMatch: 'full' },
  { path: 'analyzer', loadComponent: () => import('./analyzer/analyzer.component').then(m => m.AnalyzerComponent) },
  { path: 'vault', loadComponent: () => import('./history/history.component').then(m => m.HistoryComponent) },
  { path: 'chat', loadComponent: () => import('./chatbot/chatbot.component').then(m => m.ChatbotComponent) }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers: [provideStates([VisionState])],
})
export class PalmVisionModule {}
