diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 29b39aa..e9c62e7 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -1,6 +1,7 @@
import { Toaster } from 'sonner'
import { NavLink, Outlet, Route, Routes } from 'react-router-dom'
+import { SiteSelectionProvider, useSiteSelection } from './context/SiteSelectionContext'
import { useWsLogErrorCount } from './hooks/useWsLogErrorCount'
import { Dashboard } from './pages/Dashboard'
import Economics from './pages/Economics'
@@ -8,6 +9,47 @@ import { Logs } from './pages/Logs'
import Planning from './pages/Planning'
import { Settings } from './pages/Settings'
+function SiteCombo() {
+ const { sites, selectedSiteId, setSelectedSiteId, ready, error } = useSiteSelection()
+
+ if (!ready) {
+ return (
+
+ Lokality…
+
+ )
+ }
+
+ if (error != null || sites.length === 0) {
+ return (
+
+ {error ?? 'Žádná lokalita'}
+
+ )
+ }
+
+ return (
+
+ )
+}
+
function AppLayout() {
const logErrors = useWsLogErrorCount(true)
@@ -19,7 +61,7 @@ function AppLayout() {
return (