import { useI18n } from "@shared/i18n/context"; import { useTheme } from "@shared/theme/context"; const SVG_MOON = ( ); const SVG_SUN = ( ); interface HeaderProps { onAddAccount: () => void; version: string | null; commit?: string | null; isProxySettings?: boolean; } export function Header({ onAddAccount, version, commit, isProxySettings }: HeaderProps) { const { lang, toggleLang, t } = useI18n(); const { isDark, toggle: toggleTheme } = useTheme(); return (
{/* Logo & Title */}
{isProxySettings ? ( {t("backToDashboard")} ) : ( <>

Codex Proxy

)}
{/* Actions */}
{/* Star on GitHub */} {/* Check for Updates — hidden in electron mode (tray handles updates) */} {/* Language Toggle */} {/* Theme Toggle */} {/* Proxy Settings / Add Account */} {isProxySettings ? null : ( <> )}
{/* Update panel hidden — electron-updater handles updates via system tray */}
); }