import { Routes, Route, Navigate } from "react-router-dom";
import HomeLayout from "@/components/HomeLayout";
import MapLayout from "./components/map/Layout";
import "./App.less";

function App() {
  return (
    <Routes>
      <Route path="/" element={<HomeLayout />} />
      <Route path="map/:type" element={<MapLayout />}></Route>
      <Route path="*" element={<Navigate to={"/"} replace={true} />} />
    </Routes>
  );
}

export default App;
