28 lines
787 B
TypeScript
28 lines
787 B
TypeScript
import { HashRouter, Routes, Route } from 'react-router-dom'
|
|
import { AnimatePresence } from 'framer-motion'
|
|
import Layout from './components/Layout'
|
|
import Dashboard from './pages/Dashboard'
|
|
import Channels from './pages/Channels'
|
|
import Monitoring from './pages/Monitoring'
|
|
import Settings from './pages/Settings'
|
|
|
|
function App() {
|
|
return (
|
|
<HashRouter>
|
|
<Layout>
|
|
<AnimatePresence mode="wait">
|
|
<Routes>
|
|
<Route path="/" element={<Dashboard />} />
|
|
<Route path="/channels" element={<Channels />} />
|
|
<Route path="/monitoring" element={<Monitoring />} />
|
|
<Route path="/settings" element={<Settings />} />
|
|
</Routes>
|
|
</AnimatePresence>
|
|
</Layout>
|
|
</HashRouter>
|
|
)
|
|
}
|
|
|
|
export default App
|
|
|