Add professional historian modal with realtime analytics

This commit is contained in:
litoral05
2026-05-22 17:08:22 +01:00
parent a30d41d031
commit 6277653fed
9 changed files with 1705 additions and 44 deletions
+14 -4
View File
@@ -1,12 +1,22 @@
import { useState } from "react";
import { AppShell } from "../components/layout/AppShell";
import { DashboardPage } from "../features/dashboard/pages/DashboardPage";
import { MeteoPage } from "../features/meteo/pages/MeteoPage";
export type AppPage = "dashboard" | "meteo";
function App() {
const [activePage, setActivePage] = useState<AppPage>("dashboard");
return (
<AppShell>
{({ theme}) => (
<DashboardPage theme={theme} />
)}
<AppShell activePage={activePage} onNavigate={setActivePage}>
{({ theme }) =>
activePage === "meteo" ? (
<MeteoPage theme={theme} />
) : (
<DashboardPage theme={theme} />
)
}
</AppShell>
);
}