"use client"; import { useState } from "react"; import { BookOpen, Plus, Send } from "lucide-react"; import { useTheme } from "@/contexts/ThemeContext"; import { cn } from "@/lib/utils"; export default function LightAppNoteQAPage() { const { theme } = useTheme(); const isDark = theme === "dark"; const isLightBlue = theme === 'lightblue'; const [question, setQuestion] = useState(""); const handleSubmit = () => { if (!question.trim()) return; setQuestion(""); }; return (
{/* 背景光晕 */}
{/* 主内容 */}
{/* 笔记图标 */}
{/* 笔记标题 */}

笔记01

{/* 新增来源按钮 */} {/* 问答输入框 */}
setQuestion(e.target.value)} onKeyDown={(e) => { if (e.key === "Enter") { e.preventDefault(); handleSubmit(); } }} placeholder="开始问答" className={cn( "min-w-0 flex-1 bg-transparent text-sm outline-none", isDark ? "text-slate-200 placeholder:text-slate-500" : "text-slate-700 placeholder:text-slate-400", )} /> {question.trim() && ( )}
); }