import { BrowserRouter, Navigate, Route, Routes } from "react-router-dom"
import Fejlec from './components/Fejlec'
import Menusav from "./components/Menusav"
import Eloadok from "./components/Eloadok"
import NewArtist from "./components/NewArtist"

function App() {
  return (
    <BrowserRouter>
      <Fejlec />
      <Menusav />
      <Routes>
        <Route path="/" element={<Eloadok />} />
        <Route path="/musicdata" element={<Eloadok />} />
        <Route path="/eloadok" element={<Eloadok />} />
        <Route path="/ujeloadok" element={<NewArtist />} />
        <Route path="*" element={<Navigate to="/" />} />
      </Routes>
    </BrowserRouter>
  )
}

export default App
