import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Navbar from './components/Navbar';
import Home from './pages/Home';
import Type from './pages/Type';
import Leaderboard from './pages/Leaderboard';
import Credits from './pages/Credits';

function App() {
    return (
        <Router>
            <Navbar />
            <Routes>
                <Route path="/" element={<Home />} />
                <Route path="/type" element={<Type />} />
                <Route path="/leaderboard" element={<Leaderboard />} />
                <Route path="/credits" element={<Credits />} />
            </Routes>
        </Router>
    );
}

export default App;
