import React, { useState } from "react"; import { SystemPromptsSettings } from "./settings/SystemPromptsSettings"; import { GitSettings } from "./settings/GitSettings"; import { ModelSettings } from "./settings/ModelSettings"; import { McpSettings } from "./settings/McpSettings"; type Theme = "dark" | "light"; type SettingsSection = "appearance" | "model" | "mcp" | "system-prompts" | "git"; interface SettingsPageProps { onClose: () => void; theme: Theme; onToggleTheme: () => void; } export function SettingsPage({ onClose, theme, onToggleTheme }: SettingsPageProps) { const [activeSection, setActiveSection] = useState("appearance"); return (
{/* Header — matches the main app header height/style */}
{'⚙'} Settings
{/* Side nav */} {/* Content */}
{activeSection === "appearance" && (
Theme
Choose between light and dark mode.
{theme === "dark" ? "Dark" : "Light"}
)} {activeSection === "model" && } {activeSection === "mcp" && } {activeSection === "system-prompts" && } {activeSection === "git" && }
); }