import React from 'react';
import { Route, Routes } from 'react-router-dom';
import Dashboard from '@/pages/Dashboard';
import BridgeSettings from '@/pages/BridgeSettings';
import NewScan from '@/pages/NewScan';
import LiveCapture from '@/pages/LiveCapture';
import Projects from '@/pages/Projects';
import Processing from '@/pages/Processing';
import MeshLab from '@/pages/MeshLab';
import Measurements from '@/pages/Measurements';
import PrintCheck from '@/pages/PrintCheck';
import Exports from '@/pages/Exports';
import Calibration from '@/pages/Calibration';
import HelpSafety from '@/pages/HelpSafety';
import PageNotFound from '@/lib/PageNotFound';

export default function ScannerRoutes() {
  return (
    <Routes>
      <Route index element={<Dashboard />} />
      <Route path="bridge" element={<BridgeSettings />} />
      <Route path="new-scan" element={<NewScan />} />
      <Route path="capture" element={<LiveCapture />} />
      <Route path="projects" element={<Projects />} />
      <Route path="processing" element={<Processing />} />
      <Route path="mesh-lab" element={<MeshLab />} />
      <Route path="measurements" element={<Measurements />} />
      <Route path="print-check" element={<PrintCheck />} />
      <Route path="exports" element={<Exports />} />
      <Route path="calibration" element={<Calibration />} />
      <Route path="help" element={<HelpSafety />} />
      <Route path="*" element={<PageNotFound />} />
    </Routes>
  );
}
