diff --git a/dist/index.html b/dist/index.html index c19a495..d53804b 100644 --- a/dist/index.html +++ b/dist/index.html @@ -8,8 +8,8 @@ http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: http://8.138.234.141 https://one-feel-bucket.oss-cn-guangzhou.aliyuncs.com; connect-src 'self' http://8.138.234.141 https://api.iconify.design wss://onefeel.brother7.cn" /> - - + +
diff --git a/src/components/chat/ChatHistoryPanel.tsx b/src/components/chat/ChatHistoryPanel.tsx index 5195b38..0cf2cc4 100644 --- a/src/components/chat/ChatHistoryPanel.tsx +++ b/src/components/chat/ChatHistoryPanel.tsx @@ -1,4 +1,17 @@ +import { useEffect, useRef, useState } from 'react'; import type { ChatHistoryBucket } from './types'; +import { + ChevronDown, + LoaderCircle, + Plus, + MoreHorizontal, + PanelLeftClose, + PanelLeftOpen, + PencilLine, + Trash2, +} from 'lucide-react'; + +import blueLogo from '../../assets/images/login/blue_logo.png'; type ChatHistoryPanelProps = { buckets: ChatHistoryBucket[]; @@ -10,6 +23,14 @@ type ChatHistoryPanelProps = { onDeleteConversation?: (conversationId: string) => void; }; +type MenuState = { + conversationId: string; +} | null; + +function cx(...classes: Array