diff --git a/gui/src/pages/config/index.tsx b/gui/src/pages/config/index.tsx index f2ed90a48..4b9a5ce9e 100644 --- a/gui/src/pages/config/index.tsx +++ b/gui/src/pages/config/index.tsx @@ -1,3 +1,4 @@ +import { useState } from "react"; import { useNavigate } from "react-router-dom"; import PageHeader from "../../components/PageHeader"; import { useNavigationListener } from "../../hooks/useNavigationListener"; @@ -5,15 +6,44 @@ import { AccountButton } from "./AccountButton"; import { HelpCenterSection } from "./HelpCenterSection"; import { IndexingSettingsSection } from "./IndexingSettingsSection"; import KeyboardShortcuts from "./KeyboardShortcuts"; -import MCPServersPreview from "./MCPServersPreview"; import { UserSettingsForm } from "./UserSettingsForm"; +type TabOption = { + id: string; + label: string; + component: React.ReactNode; +}; + function ConfigPage() { useNavigationListener(); const navigate = useNavigate(); + const [activeTab, setActiveTab] = useState("general"); + + const tabs: TabOption[] = [ + { + id: "general", + label: "General", + component: , + }, + { + id: "indexing", + label: "Indexing", + component: , + }, + { + id: "help", + label: "Help Center", + component: , + }, + { + id: "shortcuts", + label: "Shortcuts", + component: , + }, + ]; return ( -
+
navigate("/")} @@ -21,12 +51,24 @@ function ConfigPage() { rightContent={} /> -
- - - - - +
+ {/* Tab Headers */} +
+ {tabs.map((tab) => ( +
setActiveTab(tab.id)} + > + {tab.label} +
+ ))} +
+ + {/* Tab Content */} +
+ {tabs.find((tab) => tab.id === activeTab)?.component} +
);