import { Routes, Route, Navigate } from 'react-router-dom'
import RandomBackdrop from './components/RandomBackdrop'
import PublicDashboard from './pages/PublicDashboard'
import AdminPanel from './pages/AdminPanel'

function App() {
  return (
    <RandomBackdrop>
      <Routes>
        <Route path="/" element={<PublicDashboard />} />
        <Route path="/admin" element={<AdminPanel />} />
        <Route path="*" element={<Navigate to="/" replace />} />
      </Routes>
    </RandomBackdrop>
  )
}

export default App
