import { BrowserRouter, Route, Routes, Navigate } from 'react-router-dom'; import { Layout } from './pages/Layout'; import { Dashboard } from './pages/Dashboard'; import { Login } from './pages/Login'; import { Monitor } from './pages/Monitor'; import { Website } from './pages/Website'; import { Settings } from './pages/Settings'; import { Servers } from './pages/Servers'; import { useUserStore } from './store/user'; import { Register } from './pages/Register'; function App() { const { info } = useUserStore(); return (
{info && ( }> } /> } /> } /> } /> } /> )} } /> } /> } />
); } export default App;