/**
 * @license
 * SPDX-License-Identifier: Apache-2.0
 */

import React from 'react';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { Layout } from './components/Layout';
import { Dashboard } from './pages/Dashboard';
import { GisMap } from './pages/GisMap';
import { Repository } from './pages/Repository';
import { Chatbot } from './pages/Chatbot';
import { GrFinder } from './pages/GrFinder';
import { Faq } from './pages/Faq';

export default function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route path="/" element={<Layout />}>
          <Route index element={<Dashboard />} />
          <Route path="map" element={<GisMap />} />
          <Route path="gr-finder" element={<GrFinder />} />
          <Route path="faq" element={<Faq />} />
          <Route path="repository" element={<Repository />} />
          <Route path="ai-assistant" element={<Chatbot />} />
        </Route>
      </Routes>
    </BrowserRouter>
  );
}
