
import React from 'react';
import { HashRouter as Router, Routes, Route } from 'react-router-dom';
import Home from '@/src/pages/Home.tsx';
import Ships from '@/src/pages/Ships.tsx';
import Itineraries from '@/src/pages/Itineraries.tsx';
import AboutUs from '@/src/pages/AboutUs.tsx';
import Guide from '@/src/pages/Guide.tsx';
import CruiseExperience from '@/src/pages/CruiseExperience.tsx';
import { LanguageProvider } from '@/src/contexts/LanguageContext.tsx';
import { ThemeProvider } from '@/src/contexts/ThemeContext.tsx';
import './styles.css';
import CruiseSpace from "@/src/pages/CruiseSpace.tsx";

const App: React.FC = () => {
  return (
    <ThemeProvider>
      <LanguageProvider>
        <Router>
          <Routes>
            <Route path="/" element={<Home />} />
            <Route path="/ships" element={<Ships />} />
            <Route path="/itineraries" element={<Itineraries />} />
            <Route path="/guide" element={<Guide />} />
            <Route path="/spaces" element={<CruiseSpace />} />
            <Route path="/experience" element={<CruiseExperience />} />
            <Route path="/about" element={<AboutUs />} />
            <Route path="*" element={<Home />} />
          </Routes>
        </Router>
      </LanguageProvider>
    </ThemeProvider>
  );
};

export default App;