// App.tsx
import {BrowserRouter as Router, Routes, Route, Navigate} from 'react-router-dom';
import React from "react";
import {MainPage} from "./pages/MainPage.tsx";

export default function App() {
    return (
        <Router>
            <Routes>
                <Route path="/" element={<MainPage />} />
                <Route path="*" element={<Navigate to="/" />} />
            </Routes>
        </Router>
    );
}