|
@@ -10,6 +10,8 @@ import ChatInput from './components/ChatInput';
|
|
|
import ChatHistoryList from './components/ChatHistoryList';
|
|
|
import { EventType, type AgentEvent, ExecutionState } from './types/event';
|
|
|
import './SidePanel.css';
|
|
|
+import TemplateList from './components/TemplateList';
|
|
|
+import { defaultTemplates } from './templates';
|
|
|
|
|
|
const SidePanel = () => {
|
|
|
const [messages, setMessages] = useState<Message[]>([]);
|
|
@@ -537,7 +539,7 @@ const SidePanel = () => {
|
|
|
return (
|
|
|
<div>
|
|
|
<div
|
|
|
- className={`flex h-screen flex-col ${isDarkMode ? 'bg-slate-900' : ''} overflow-hidden border ${isDarkMode ? 'border-sky-800' : 'border-[rgb(186,230,253)]'} rounded-2xl`}>
|
|
|
+ className={`flex h-screen flex-col ${isDarkMode ? 'bg-slate-900' : ''} overflow-hidden border ${isDarkMode ? 'border-sky-800' : 'border-[rgb(199,204,207)]'} rounded-2xl`}>
|
|
|
{showHistory ? (
|
|
|
<div className="flex-1 overflow-hidden">
|
|
|
<ChatHistoryList
|
|
@@ -561,6 +563,13 @@ const SidePanel = () => {
|
|
|
{/*<span className="text-black">作为你的智能伙伴,我既能写文案、想点子,又能陪你聊天、答疑解惑。</span>*/}
|
|
|
</div>
|
|
|
</div>
|
|
|
+ {/*<div>*/}
|
|
|
+ {/* <TemplateList*/}
|
|
|
+ {/* templates={defaultTemplates}*/}
|
|
|
+ {/* onTemplateSelect={handleTemplateSelect}*/}
|
|
|
+ {/* isDarkMode={isDarkMode}*/}
|
|
|
+ {/* />*/}
|
|
|
+ {/*</div>*/}
|
|
|
</>
|
|
|
)}
|
|
|
<div
|
|
@@ -580,7 +589,7 @@ const SidePanel = () => {
|
|
|
className={`header-icon ${isDarkMode ? 'text-sky-400 hover:text-sky-300' : 'text-sky-400 hover:text-sky-500'} cursor-pointer`}
|
|
|
aria-label="New Chat"
|
|
|
tabIndex={0}>
|
|
|
- <PiPlusBold size={20} />
|
|
|
+ <PiPlusBold size={18} color={isDarkMode ? '#fff' : '#808080'} />
|
|
|
</button>
|
|
|
<button
|
|
|
type="button"
|
|
@@ -589,7 +598,7 @@ const SidePanel = () => {
|
|
|
className={`header-icon ${isDarkMode ? 'text-sky-400 hover:text-sky-300' : 'text-sky-400 hover:text-sky-500'} cursor-pointer`}
|
|
|
aria-label="Load History"
|
|
|
tabIndex={0}>
|
|
|
- <GrHistory size={20} />
|
|
|
+ <GrHistory size={17} color={isDarkMode ? '#fff' : '#808080'} />
|
|
|
</button>
|
|
|
</>
|
|
|
)}
|
|
@@ -600,7 +609,7 @@ const SidePanel = () => {
|
|
|
className={`header-icon ${isDarkMode ? 'text-sky-400 hover:text-sky-300' : 'text-sky-400 hover:text-sky-500'} cursor-pointer`}
|
|
|
aria-label="Settings"
|
|
|
tabIndex={0}>
|
|
|
- <FiSettings size={20} />
|
|
|
+ <FiSettings size={18} color={isDarkMode ? '#fff' : '#808080'} />
|
|
|
</button>
|
|
|
</div>
|
|
|
</header>
|