From 435dc470964e0d2018ea619e51a311cc30e2903b Mon Sep 17 00:00:00 2001 From: Blair Chen Date: Sun, 21 Jan 2024 03:32:54 +0800 Subject: [PATCH] Delete ChatSiderBar.tsx --- components/Chat/ChatSiderBar.tsx | 77 -------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 components/Chat/ChatSiderBar.tsx diff --git a/components/Chat/ChatSiderBar.tsx b/components/Chat/ChatSiderBar.tsx deleted file mode 100644 index 124ce53..0000000 --- a/components/Chat/ChatSiderBar.tsx +++ /dev/null @@ -1,77 +0,0 @@ -'use client' - -import React, { useContext } from 'react' -import { Box, Flex, IconButton, ScrollArea, Text } from '@radix-ui/themes' -import cs from 'classnames' -import { AiOutlineCloseCircle } from 'react-icons/ai' -import { SiOpenai } from 'react-icons/si' -import ChatContext from './chatContext' - -import './index.scss' - -export const ChatSiderBar = () => { - const { - currentChat, - chatList, - DefaultPersonas, - toggleSidebar, - onDeleteChat, - onChangeChat, - onCreateChat, - onOpenPersonaPanel - } = useContext(ChatContext) - - return ( - - - onCreateChat?.(DefaultPersonas[0])} - className="bg-token-surface-primary active:scale-95 " - > - - New Chat - - - - {chatList.map((chat) => ( - onChangeChat?.(chat)} - > - - {chat.persona?.name} - - { - e.stopPropagation() - onDeleteChat?.(chat) - }} - > - - - - ))} - - - onOpenPersonaPanel?.('chat')} - className="bg-token-surface-primary active:scale-95 " - > - Persona Store - - - - ) -} - -export default ChatSiderBar