diff --git a/frontend/web/src/App.tsx b/frontend/web/src/App.tsx
index 2013642..fbedf70 100644
--- a/frontend/web/src/App.tsx
+++ b/frontend/web/src/App.tsx
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
import { TopBar } from "./components/TopBar";
-import { Sidebar, BottomNav } from "./components/Nav";
+import { Sidebar } from "./components/Nav";
import { ModeRouter } from "./modes/ModeRouter";
import { AdminApp } from "./admin/AdminApp";
import { parseAdminHash } from "./admin/router";
@@ -34,11 +34,10 @@ export default function App(): React.ReactNode {
-
+
-
);
}
diff --git a/frontend/web/src/components/ChatInput.tsx b/frontend/web/src/components/ChatInput.tsx
index b395af9..62ebefe 100644
--- a/frontend/web/src/components/ChatInput.tsx
+++ b/frontend/web/src/components/ChatInput.tsx
@@ -1,25 +1,14 @@
import { useEffect, useRef, useState } from "react";
import { Button } from "./primitives";
-import { Icon, type IconName } from "./Icon";
-import { useModeStore } from "../store/useModeStore";
-import type { Mode } from "../lib/types";
+import { Icon } from "./Icon";
export interface ChatInputProps {
- onSend: (text: string, mode: Mode) => void;
+ onSend: (text: string) => void;
sending: boolean;
onVoice: () => void;
placeholder?: string;
}
-const INPUT_MODES: ReadonlyArray<{ mode: Mode; label: string; icon: IconName }> = [
- { mode: "chat", label: "对话", icon: "chat" },
- { mode: "code", label: "代码", icon: "terminal" },
- { mode: "home", label: "家居", icon: "home" },
- { mode: "work", label: "工作", icon: "folder" },
- { mode: "docs", label: "知识库", icon: "docs" },
- { mode: "vision", label: "视觉", icon: "vision" },
-];
-
export function ChatInput({
onSend,
sending,
@@ -28,8 +17,6 @@ export function ChatInput({
}: ChatInputProps): React.ReactNode {
const [value, setValue] = useState("");
const taRef = useRef(null);
- const mode = useModeStore((s) => s.mode);
- const setMode = useModeStore((s) => s.setMode);
// auto-grow the textarea up to a max height
useEffect(() => {
@@ -42,31 +29,12 @@ export function ChatInput({
const submit = () => {
const t = value.trim();
if (!t || sending) return;
- onSend(t, mode);
+ onSend(t);
setValue("");
};
return (
- {/* input-mode switcher: sets the mode for the NEXT message (design/07 §1). */}
-
- 行为模式
- {INPUT_MODES.map(({ mode: m, label, icon }) => (
-
- ))}
-
-
-
void send(t, mode)} sending={sending} onVoice={() => setMode("voice")} />
+ void send(t)} sending={sending} onVoice={() => { /* voice handled by agent */ }} />
);
}