diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index ce7963c..24fd6fe 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -23,6 +23,8 @@ import type { HexagonPropertiesResponse, } from './types'; +type Theme = 'light' | 'dark'; + const DEBOUNCE_MS = 150; const URL_DEBOUNCE_MS = 300; @@ -180,9 +182,13 @@ type Page = 'home' | 'dashboard' | 'data-sources'; function Header({ activePage, onPageChange, + theme, + onToggleTheme, }: { activePage: Page; onPageChange: (page: Page) => void; + theme: Theme; + onToggleTheme: () => void; }) { const [copied, setCopied] = useState(false); @@ -240,7 +246,23 @@ function Header({ - {activePage === 'dashboard' && ( +