An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
feat: add History icon to sidebar label
Yoshiki Miura92c7efc40869
diff --git a/components/sidebar/chat-history-section.tsx b/components/sidebar/chat-history-section.tsxindex 308ff299..5d53c94f 100644--- a/components/sidebar/chat-history-section.tsx+++ b/components/sidebar/chat-history-section.tsx@@ -2,6 +2,7 @@ import { ClearHistory } from '@/components/clear-history'import { SidebarGroupLabel, SidebarMenu } from '@/components/ui/sidebar'import { getChats } from '@/lib/actions/chat'import { Chat } from '@/lib/types'+import { History } from 'lucide-react'import { cache } from 'react'import { ChatMenuItem } from './chat-menu-item'@@ -19,8 +20,9 @@ export async function ChatHistorySection() {return (<div className="flex flex-col flex-1 h-full">- <SidebarGroupLabel className="px-2 text-xs font-normal text-muted-foreground mb-2">- History+ <SidebarGroupLabel className="px-2 mb-2 flex items-center gap-1.5">+ <History size={14} />+ <span>History</span></SidebarGroupLabel><div className="flex-1 overflow-y-auto mb-2">{!chats?.length ? (