feat: add locale, palette, and theme controls to site header

This commit is contained in:
mlogclub
2026-06-21 10:32:44 +08:00
parent 991243625d
commit 94c9292988
2 changed files with 22 additions and 0 deletions
+8
View File
@@ -3,7 +3,10 @@
import { useEffect, useRef } from "react"
import { usePathname } from "next/navigation"
import { LocaleSwitcher } from "@/components/locale-switcher"
import { PaletteToggle } from "@/components/palette-toggle"
import { RealtimeConnectionStatus } from "@/components/realtime-connection-status"
import { ThemeToggle } from "@/components/theme-toggle"
import { useI18n } from "@/i18n/provider"
import { getPageTitleKey } from "@/lib/navigation"
import { useAgentConversationsStore } from "@/lib/stores/agent-conversations"
@@ -74,6 +77,11 @@ export function SiteHeader() {
</Breadcrumb>
</div>
</div>
<div className="flex shrink-0 items-center justify-end gap-2">
<LocaleSwitcher />
<PaletteToggle />
<ThemeToggle />
</div>
</div>
</header>
)