mirror of
https://github.com/hex248/tsos.git
synced 2026-02-07 18:23:05 +00:00
32 lines
780 B
TypeScript
32 lines
780 B
TypeScript
import { BrowserRouter, Route, Routes } from "react-router-dom";
|
|
import Index from "@/Index";
|
|
import Settings from "./Settings";
|
|
import Layout from "./Layout";
|
|
|
|
function App() {
|
|
return (
|
|
<BrowserRouter>
|
|
<Routes>
|
|
<Route
|
|
path="/"
|
|
element={
|
|
<Layout>
|
|
<Index />
|
|
</Layout>
|
|
}
|
|
/>
|
|
<Route
|
|
path="/settings"
|
|
element={
|
|
<Layout>
|
|
<Settings />
|
|
</Layout>
|
|
}
|
|
/>
|
|
</Routes>
|
|
</BrowserRouter>
|
|
);
|
|
}
|
|
|
|
export default App;
|